aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-12-01 03:41:08 +0000
committerPJ Eby <distutils-sig@python.org>2006-12-01 03:41:08 +0000
commitf42a267aa749ccfb2862e1b4aaf97b13a7099dfb (patch)
treef189eaa3a2760c98e5ae20f205a5d264b3fc7266 /setuptools/command/easy_install.py
parent3abf8f8b8c886bdbcb28261ced7010f6cc88256f (diff)
downloadexternal_python_setuptools-f42a267aa749ccfb2862e1b4aaf97b13a7099dfb.tar.gz
external_python_setuptools-f42a267aa749ccfb2862e1b4aaf97b13a7099dfb.tar.bz2
external_python_setuptools-f42a267aa749ccfb2862e1b4aaf97b13a7099dfb.zip
Fixed a problem with ``.pth`` testing on Windows when ``sys.executable``
has a space in it (e.g., the user installed Python to a ``Program Files`` directory). (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052887
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 88655610..3b3ca57f 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -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)