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 try: from . import networkmanager except ImportError: from . import networkmanager_fallback from . import net