Commit 71aeed6a authored by PJ Eby's avatar PJ Eby

Fix a Windows problem when the Python executable is in a directory with

a ' ' in its name.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042359
parent 38aa9be2
......@@ -349,7 +349,7 @@ Please make the appropriate changes for your system and try again.
if basename.lower()=='python.exe' and os.path.exists(alt):
# use pythonw.exe to avoid opening a console window
executable = alt
if ' ' in executable: executable='"%s"' % executable
from distutils.spawn import spawn
spawn([executable,'-E','-c','pass'],0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment