mirror of
https://github.com/gryf/wicd.git
synced 2026-01-03 12:24:14 +01:00
experimental:
- Use gobject.timeout_add_seconds instead of gobject.timeout_add when possible - Merge some fixes from pluggablebackends - Replace os.system usage with subprocess.call.
This commit is contained in:
@@ -134,7 +134,7 @@ def WriteLine(my_file, text):
|
||||
|
||||
def ExecuteScript(script):
|
||||
""" Execute a command and send its output to the bit bucket. """
|
||||
os.system("%s > /dev/null 2>&1" % script)
|
||||
call("%s > /dev/null 2>&1" % script)
|
||||
|
||||
def ReadFile(filename):
|
||||
""" read in a file and return it's contents as a string """
|
||||
|
||||
Reference in New Issue
Block a user