summaryrefslogtreecommitdiff
path: root/examples/simple-gps-python.py
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2010-06-09 23:26:56 +0200
committerLaurent Bigonville <bigon@bigon.be>2010-06-09 23:26:56 +0200
commit27c7aeb29425120664ad75725e3c6cabd6e29a31 (patch)
treefa7777aedbb2c2535071649ba634bd5df9055b7b /examples/simple-gps-python.py
parent5d7bb76ee5fe206dd19f08af1917f37e25ece64f (diff)
Imported Upstream version 0.7upstream/0.7
Diffstat (limited to 'examples/simple-gps-python.py')
-rwxr-xr-xexamples/simple-gps-python.py4
1 files changed, 3 insertions, 1 deletions
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)