From dc4dc34624172644797ec9e6fb59cfadf00a0bda Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Sun, 16 May 2010 00:33:53 +0200 Subject: [PATCH] String commands require shell=True. --- gui/Scyther/Misc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/Scyther/Misc.py b/gui/Scyther/Misc.py index 13d04ea..2f9a344 100644 --- a/gui/Scyther/Misc.py +++ b/gui/Scyther/Misc.py @@ -89,15 +89,17 @@ def safeCommandOutput(cmd): Meant for short outputs, as output is stored in memory and not written to a file. """ - p = Popen(cmd, shell=getShell(), stdout=PIPE, stderr=PIPE) + + p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE) (sout,serr) = p.communicate() + return (p.returncode,sout,serr) def safeCommand(cmd): """ Execute a command with some arguments. Safe cross-platform version, I hope. """ - p = Popen(cmd, shell=getShell()) + p = Popen(cmd, shell=True) sts = p.wait() return sts