mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Revert r132446 "Check the existence and executability of scm commands"
This completely broke syncing on Windows. TBR=mukai@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9956149 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@132451 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -193,16 +193,6 @@ def safe_makedirs(tree):
|
||||
raise
|
||||
|
||||
|
||||
def FindCommandExecutable(cmd):
|
||||
"""Finds the specified |cmd| in $PATH and returns its path. Returns None
|
||||
if it's not found."""
|
||||
for path in os.environ['PATH'].split(os.pathsep):
|
||||
full_path = os.path.join(path, cmd)
|
||||
if os.path.isfile(full_path) and os.access(full_path, os.X_OK):
|
||||
return full_path
|
||||
return None
|
||||
|
||||
|
||||
def CheckCallAndFilterAndHeader(args, always=False, **kwargs):
|
||||
"""Adds 'header' support to CheckCallAndFilter.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user