예제 #1
0
 def bus_factory():
     if address:
         return DBusAddress(x2char_star(address))
     elif machine:
         return DBusMachine(x2char_star(machine))
     else:
         return DBus(user_mode=user_mode)
예제 #2
0
 def bus_factory():
     if machine:
         return DBusMachine(x2char_star(machine))
     else:
         return DBus(user_mode=user_mode)
예제 #3
0
파일: run.py 프로젝트: floppym/pystemd
 def bus_factory():
     if machine:
         return DBusMachine(machine)
     else:
         return DBus(user_mode=user_mode)