A bit of cleanup, and call subprocess.Popen with shell=True.

This commit is contained in:
Shyotl
2014-09-01 00:47:39 -05:00
parent 8e45003c27
commit 992bbbba1c
3 changed files with 6 additions and 6 deletions

View File

@@ -628,7 +628,7 @@ class WindowsSetup(PlatformSetup):
def run(self, command, name=None):
'''Run a program. If the program fails, raise an exception.'''
ret = os.system(command.encode('utf-8'))
ret = os.system(command)
if ret:
if name is None:
name = command.split(None, 1)[0]