diff options
author | phillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2010-08-22 23:07:41 +0000 |
---|---|---|
committer | phillip.eby <phillip.eby@6015fed2-1504-0410-9fe1-9d1591cc4771> | 2010-08-22 23:07:41 +0000 |
commit | eea4a5b0c5bc13e4db6eef2e34a4d5b20e335d45 (patch) | |
tree | 083fea75ac278d8f061f05647c57574935ebd0d0 /setuptools/command | |
parent | 61b207d52c0e98877e9c7e0f014ebce91f80a1f1 (diff) | |
download | python-setuptools-eea4a5b0c5bc13e4db6eef2e34a4d5b20e335d45.tar.gz |
Fix quotes handling for GUI scripts on Windows when Python is in a
directory with a space in the name.
git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@84272 6015fed2-1504-0410-9fe1-9d1591cc4771
Diffstat (limited to 'setuptools/command')
-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 c4f030f..fff5c90 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 |