1
0
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:
imdano
2008-09-13 11:28:36 +00:00
parent 97e1123c8c
commit bbfcae834e
4 changed files with 24 additions and 5 deletions

View File

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