DEV-44838 - See if the executable parameter to subprocess.Popen must be absolute on windows.

meow-7.2.2
Nathan Wilcox 2010-01-08 17:42:22 -08:00
parent 010bfed411
commit 6b33d5955a
1 changed files with 2 additions and 0 deletions

View File

@ -587,6 +587,8 @@ class WindowsSetup(PlatformSetup):
def run(self, command, name=None, retry_on=None, retries=1):
'''Run a program. If the program fails, raise an exception.'''
assert name is not None, 'On windows an executable path must be given in name.'
if not os.path.isfile(name):
name = self.find_in_path(name)
while retries:
retries = retries - 1
print "develop.py tries to run:", command