1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-07 14:24:22 +01:00

Make sure it's possible to stop a dhcp client that's in the process of getting a lease.

Have gui.py trigger connection status updates every .5 seconds if in a connecting state.
Fix typo in wicd-client.py
This commit is contained in:
Dan O'Reilly
2009-02-11 20:55:02 -05:00
parent 7ee121c15e
commit bae95355d7
6 changed files with 35 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ class WicdError(Exception):
__LANG = None
def Run(cmd, include_stderr=False, return_pipe=False):
def Run(cmd, include_stderr=False, return_pipe=False, return_obj=False):
""" Run a command.
Runs the given command, returning either the output
@@ -112,6 +112,8 @@ def Run(cmd, include_stderr=False, return_pipe=False):
return ""
if return_obj:
return f
if return_pipe:
return f.stdout
else: