1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-28 09:22:36 +01:00

trunk/experimental:

- Fix use of subprocess.call method
This commit is contained in:
imdano
2008-09-20 10:39:23 +00:00
parent c197b5fcbc
commit f71ca63667

View File

@@ -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 """