summaryrefslogtreecommitdiff
path: root/examples/simple-gps-python.py
diff options
context:
space:
mode:
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)