aif-ng/aif/network/__init__.py

20 lines
594 B
Python

# try:
# from . import _common
# except ImportError:
# pass # GI isn't supported, so we don't even use a fallback.
from . import netctl
# TODO: use DBus interface for systemd but fallback to subprocess?
# http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html
# https://www.youtube.com/watch?v=ZUX9Fx8Rwzg
# https://www.youtube.com/watch?v=lBQgMGPxqNo
# https://github.com/facebookincubator/pystemd has some unit/service examples
try:
from . import networkd
except ImportError:
from . import networkd_fallback as networkd
from . import networkmanager
from . import net