diff options
author | Sebastian Chlad <sebastian.chlad@tieto.com> | 2014-05-27 11:21:58 +0200 |
---|---|---|
committer | Sebastian Chlad <sebastian.chlad@tieto.com> | 2014-05-27 11:21:58 +0200 |
commit | 9b7805a3ebc7ab3c4500290df889abedbfd377fc (patch) | |
tree | 12d87aca23319078a4cd6a2aa9aba8d82967e11e /test/simple-agent | |
parent | 5d363eb448eacca7c3939fd6e8d6ee3c284db7e2 (diff) | |
download | bluez-9b7805a3ebc7ab3c4500290df889abedbfd377fc.tar.gz bluez-9b7805a3ebc7ab3c4500290df889abedbfd377fc.tar.bz2 bluez-9b7805a3ebc7ab3c4500290df889abedbfd377fc.zip |
Imported Upstream version 5.19upstream/5.19upstream
Diffstat (limited to 'test/simple-agent')
-rwxr-xr-x | test/simple-agent | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/simple-agent b/test/simple-agent index 854e1af4..a69299a3 100755 --- a/test/simple-agent +++ b/test/simple-agent @@ -2,13 +2,15 @@ from __future__ import absolute_import, print_function, unicode_literals -from gi.repository import GObject - +from optparse import OptionParser import sys import dbus import dbus.service import dbus.mainloop.glib -from optparse import OptionParser +try: + from gi.repository import GObject +except ImportError: + import gobject as GObject import bluezutils BUS_NAME = 'org.bluez' |