Commit eb0f021b authored by Johannes Bechberger's avatar Johannes Bechberger

Fix #36

parent 99df6a0d
...@@ -125,7 +125,7 @@ def execute(cmd, env=None, timeout=0, rlimit=None, propagate_sigint=True): ...@@ -125,7 +125,7 @@ def execute(cmd, env=None, timeout=0, rlimit=None, propagate_sigint=True):
#cmd = filter(lambda x: x, cmd.split(' ')) #cmd = filter(lambda x: x, cmd.split(' '))
else: else:
#cmd = shlex.split(cmd[0]) + cmd[1:] #cmd = shlex.split(cmd[0]) + cmd[1:]
cmd = cmd[0] + " " + " ".join(shlex.quote(c) for c in cmd[1:]) cmd = " ".join(shlex.quote(c) for c in cmd)
exc = _Execute(cmd, timeout, env, rlimit) exc = _Execute(cmd, timeout, env, rlimit)
(out, err, returncode) = exc.run() (out, err, returncode) = exc.run()
if returncode == -signal.SIGINT: if returncode == -signal.SIGINT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment