This commit is contained in:
utahta
2011-06-29 18:10:26 +09:00
parent 7e5f5c72e1
commit 7e5d138150
+2 -2
View File
@@ -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)