1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-07 03:47:11 +01:00
Files
snapper/examples/python/list-configs.py
2023-03-28 15:00:27 +02:00

15 lines
301 B
Python
Executable File

#!/usr/bin/python3
import dbus
bus = dbus.SystemBus()
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
dbus_interface='org.opensuse.Snapper')
configs = snapper.ListConfigs()
for config in configs:
print(config[0], config[1])