[Python-checkins] r84272 - sandbox/trunk/setuptools/setuptools/command/easy_install.py
phillip.eby
python-checkins at python.org
Mon Aug 23 01:07:42 CEST 2010
Author: phillip.eby
Date: Mon Aug 23 01:07:41 2010
New Revision: 84272
Log:
Fix quotes handling for GUI scripts on Windows when Python is in a
directory with a space in the name.
Modified:
sandbox/trunk/setuptools/setuptools/command/easy_install.py
Modified: sandbox/trunk/setuptools/setuptools/command/easy_install.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/easy_install.py (original)
+++ sandbox/trunk/setuptools/setuptools/command/easy_install.py Mon Aug 23 01:07:41 2010
@@ -1583,7 +1583,7 @@
old = ['.py','.pyc','.pyo']
new_header = re.sub('(?i)pythonw.exe','python.exe',header)
- if os.path.exists(new_header[2:-1]) or sys.platform!='win32':
+ if os.path.exists(new_header[2:-1].strip('"')) or sys.platform!='win32':
hdr = new_header
else:
hdr = header
More information about the Python-checkins
mailing list