service: Send D-Bus reply for Manager.ConnectService when service is ready
[framework/connectivity/connman.git] / test / find-service
1 #!/usr/bin/python
2
3 import sys
4 import dbus
5
6 if (len(sys.argv) < 2):
7         print "Usage: %s <pattern>" % (sys.argv[0])
8         sys.exit(1)
9
10 bus = dbus.SystemBus()
11
12 manager = dbus.Interface(bus.get_object('net.connman', '/'),
13                                         'net.connman.Manager')
14
15 path = manager.LookupService(sys.argv[1])
16
17 print "Service is %s" % (path)