Require library version for GObject introspection

Specify the version of a library before importing it using GObject
introspection.  Mainly to avoid warnings with recent version of
pygobject.  Closes #247.
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2015-10-17 21:13:35 -04:00
1 parent 4ecc416f3a
commit 2ef22ec1b4
3 files changed
+8

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ from django.core import validators
from gettext import gettext as _
from plinth import network
import gi
gi.require_version('NM', '1.0')
from gi.repository import NM as nm