Skip to content
Snippets Groups Projects
Commit 6b33d595 authored by Nathan Wilcox's avatar Nathan Wilcox
Browse files

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

parent 010bfed4
No related branches found
No related tags found
No related merge requests found
...@@ -587,6 +587,8 @@ def get_build_cmd(self): ...@@ -587,6 +587,8 @@ def get_build_cmd(self):
def run(self, command, name=None, retry_on=None, retries=1): def run(self, command, name=None, retry_on=None, retries=1):
'''Run a program. If the program fails, raise an exception.''' '''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.' 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: while retries:
retries = retries - 1 retries = retries - 1
print "develop.py tries to run:", command print "develop.py tries to run:", command
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment