aif-ng/aif/network/__init__.py

25 lines
659 B
Python
Raw Normal View History

2019-11-10 05:39:33 -05:00
try:
from . import _common
except ImportError:
pass # GI isn't supported, so we don't even use a fallback.
2019-11-11 21:42:58 -05:00
from . import netctl
2019-11-10 05:39:33 -05:00
# 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
2019-11-11 21:42:58 -05:00
try:
from . import networkd
except ImportError:
from . import networkd_fallback as networkd
2019-11-10 05:39:33 -05:00
2019-11-11 21:42:58 -05:00
try:
from . import networkmanager
except ImportError:
from . import networkmanager_fallback
from . import net