From f71ca636679eed50185485bd07aece3483732071 Mon Sep 17 00:00:00 2001 From: imdano <> Date: Sat, 20 Sep 2008 10:39:23 +0000 Subject: [PATCH] trunk/experimental: - Fix use of subprocess.call method --- wicd/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wicd/misc.py b/wicd/misc.py index a1b4fd0..a3c0350 100644 --- a/wicd/misc.py +++ b/wicd/misc.py @@ -93,7 +93,7 @@ def LaunchAndWait(cmd): cmd : A list contained the program name and its arguments. """ - call(cmd) + call(cmd, shell=True) def IsValidIP(ip): """ Make sure an entered IP is valid. """ @@ -133,7 +133,7 @@ def WriteLine(my_file, text): def ExecuteScript(script): """ Execute a command and send its output to the bit bucket. """ - call("%s > /dev/null 2>&1" % script) + call("%s > /dev/null 2>&1" % script, shell=True) def ReadFile(filename): """ read in a file and return it's contents as a string """