From 27c7aeb29425120664ad75725e3c6cabd6e29a31 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Wed, 9 Jun 2010 23:26:56 +0200 Subject: Imported Upstream version 0.7 --- examples/simple-gps-python.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/simple-gps-python.py') diff --git a/examples/simple-gps-python.py b/examples/simple-gps-python.py index 8687a4e..c68ae92 100755 --- a/examples/simple-gps-python.py +++ b/examples/simple-gps-python.py @@ -1,5 +1,7 @@ #! /usr/bin/python +# This example code is in the public domain. + import sys import gobject import dbus, dbus.service, dbus.mainloop.glib @@ -33,7 +35,7 @@ bus = dbus.SystemBus() control = bus.get_object(GYPSY_DBUS_SERVICE, GYPSY_DBUS_PATH) # Create a client for the specified GPS device -path = control.Create(sys.argv[1]) +path = control.Create(sys.argv[1], dbus_interface=GYPSY_CONTROL_DBUS_INTERFACE) # Get a proxy to the client gps = bus.get_object(GYPSY_DBUS_SERVICE, path) -- cgit v1.2.3