diff options
author | PJ Eby <distutils-sig@python.org> | 2010-08-22 23:09:12 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2010-08-22 23:09:12 +0000 |
commit | 97128303bf077da33cc5b30ce71d853fb730b589 (patch) | |
tree | a07f3d3c09ddc39863b7a4e1510b829f9ff00ef2 /setuptools/command/easy_install.py | |
parent | 9e86a83d9b16147dfda3ae2d74c2ed82c1c893a7 (diff) | |
download | external_python_setuptools-97128303bf077da33cc5b30ce71d853fb730b589.tar.gz external_python_setuptools-97128303bf077da33cc5b30ce71d853fb730b589.tar.bz2 external_python_setuptools-97128303bf077da33cc5b30ce71d853fb730b589.zip |
Fix quotes handling for GUI scripts on Windows when Python is in a
directory with a space in the name.
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4084273
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index af4e3497..014fc70d 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1583,7 +1583,7 @@ def get_script_args(dist, executable=sys_executable, wininst=False): 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 |