Wrap quotes around sys.executable in case there are spaces in the pathname

This commit is contained in:
Robin Dunn
2016-07-01 11:32:52 -07:00
parent 60065b23bf
commit 7050c8466e

View File

@@ -105,7 +105,7 @@ class wx_build(orig_build):
'message and the wxWidgets and Phoenix build steps in the future.\n')
# Use the same Python that is running this script.
cmd = [sys.executable, '-u', 'build.py', 'build']
cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'build']
cmd = ' '.join(cmd)
runcmd(cmd)
@@ -219,7 +219,7 @@ class wx_install(orig_install):
class wx_sdist(orig_sdist):
def run(self):
# Use build.py to perform the sdist
cmd = [sys.executable, '-u', 'build.py', 'sdist']
cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'sdist']
cmd = ' '.join(cmd)
runcmd(cmd)