mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use pgi only when gi is not available
- Write a convenience utility to handle the import process.
This commit is contained in:
1 parent
608897b9ec
commit
cc858bbd6a
4 files changed
+44
-13
No files matched your search
@@ -20,9 +20,8 @@ from django.core import validators
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth import network
|
||||
import pgi
|
||||
pgi.require_version('NM', '1.0')
|
||||
from pgi.repository import NM as nm
|
||||
from plinth.utils import import_from_gi
|
||||
nm = import_from_gi('NM', '1.0')
|
||||
|
||||
|
||||
def _get_interface_choices(device_type):
|
||||
|
||||
Reference in new issue
Block a user