1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-06 00:45:39 +01:00
Files
snapper/examples/python/get-config.py
2012-07-24 10:19:52 +02:00

18 lines
335 B
Python
Executable File

#!/usr/bin/python
import dbus
bus = dbus.SystemBus()
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
dbus_interface='org.opensuse.Snapper')
config = snapper.GetConfig("root")
print config[0], config[1]
for k, v in config[2].items():
print "%s=%s" % (k, v)