This commit is contained in:
2014-11-17 13:55:46 +00:00
parent f6da66d530
commit c22e6ff7a6
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ class littlebigman(build_exe):
def run_littlebigman(self): def run_littlebigman(self):
p = subprocess.Popen(os.path.join(self.build_temp, p = subprocess.Popen("'%s'" % os.path.join(self.build_temp,
'littlebigman'), 'littlebigman'),
shell=True, shell=True,
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
little = p.communicate()[0] little = p.communicate()[0]

View File

@ -30,7 +30,7 @@ def is_python27(path=None):
if path is None: if path is None:
pythonversion = LooseVersion(sysconfig.get_python_version()) pythonversion = LooseVersion(sysconfig.get_python_version())
else: else:
command = """%s -c 'from distutils import sysconfig; """ \ command = """'%s' -c 'from distutils import sysconfig; """ \
"""print sysconfig.get_python_version()'""" % path """print sysconfig.get_python_version()'""" % path
p = subprocess.Popen(command, p = subprocess.Popen(command,
@ -82,7 +82,7 @@ def is_a_virtualenv_python(path=None):
if path is None: if path is None:
rep = hasattr(sys, 'real_prefix') rep = hasattr(sys, 'real_prefix')
else: else:
command = """%s -c 'import sys; print hasattr(sys,"real_prefix")'""" % path command = """'%s' -c 'import sys; print hasattr(sys,"real_prefix")'""" % path
p = subprocess.Popen(command, p = subprocess.Popen(command,
shell=True, shell=True,
stdout=subprocess.PIPE) stdout=subprocess.PIPE)