From 7e5d1381508bc426508fe42e8eb3bfbded3c8d58 Mon Sep 17 00:00:00 2001 From: utahta Date: Wed, 29 Jun 2011 18:10:26 +0900 Subject: [PATCH] #30 bug fix --- pythonbrew/commands/py.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonbrew/commands/py.py b/pythonbrew/commands/py.py index 17f724f..ca11af9 100644 --- a/pythonbrew/commands/py.py +++ b/pythonbrew/commands/py.py @@ -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)