diff options
Diffstat (limited to 'test/info.py')
-rwxr-xr-x | test/info.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/info.py b/test/info.py index 6659a3a..82057fa 100755 --- a/test/info.py +++ b/test/info.py @@ -224,8 +224,10 @@ def gsm_inspect(proxy, props): bus = dbus.SystemBus() -bus = dbus.SystemBus() -proxy = bus.get_object(MM_DBUS_SERVICE, sys.argv[1]) +objpath = sys.argv[1] +if objpath[:1] != '/': + objpath = "/org/freedesktop/ModemManager/Modems/%s" % str(objpath) +proxy = bus.get_object(MM_DBUS_SERVICE, objpath) # Properties props = dbus.Interface(proxy, dbus_interface='org.freedesktop.DBus.Properties') |