mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 15:20:16 +00:00
#30 bug fix
This commit is contained in:
@@ -40,12 +40,12 @@ class PyCommand(Command):
|
||||
logger.info('*** %s ***' % d)
|
||||
path = os.path.join(PATH_PYTHONS, d, 'bin', args[0])
|
||||
if os.path.isfile(path) and os.access(path, os.X_OK):
|
||||
p = Popen("%s %s" % (path, ' '.join(args[1:])), shell=True)
|
||||
p = Popen([path] + args[1:])
|
||||
p.wait()
|
||||
else:
|
||||
path = os.path.join(PATH_PYTHONS, d, 'bin', 'python')
|
||||
if os.path.isfile(path) and os.access(path, os.X_OK):
|
||||
p = Popen("%s %s" % (path, ' '.join(args)), shell=True)
|
||||
p = Popen([path] + args)
|
||||
p.wait()
|
||||
else:
|
||||
logger.info('%s: No such file or directory.' % path)
|
||||
|
||||
Reference in New Issue
Block a user