[Python-checkins] r84273 - sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py

phillip.eby python-checkins at python.org
Mon Aug 23 01:09:12 CEST 2010


Author: phillip.eby
Date: Mon Aug 23 01:09:12 2010
New Revision: 84273

Log:
Fix quotes handling for GUI scripts on Windows when Python is in a
directory with a space in the name.


Modified:
   sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py

Modified: sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/command/easy_install.py	Mon Aug 23 01:09:12 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