mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 04:09:45 +00:00
git-llvm script should add .exe on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d448c732cb
commit
69916e12b3
@ -134,6 +134,8 @@ def svn(cwd, *cmd, **kwargs):
|
||||
ignore_errors=kwargs.get('ignore_errors', None))
|
||||
|
||||
def program_exists(cmd):
|
||||
if sys.platform == 'win32' and not cmd.endswith('.exe'):
|
||||
cmd += '.exe'
|
||||
for path in os.environ["PATH"].split(os.pathsep):
|
||||
if os.access(os.path.join(path, cmd), os.X_OK):
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user