summary refs log tree commit diff
path: root/examples/python/gi/update-ip4-method.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/gi/update-ip4-method.py')
-rwxr-xr-xexamples/python/gi/update-ip4-method.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/python/gi/update-ip4-method.py b/examples/python/gi/update-ip4-method.py
index 983578cf..5e058031 100755
--- a/examples/python/gi/update-ip4-method.py
+++ b/examples/python/gi/update-ip4-method.py
@@ -27,6 +27,8 @@
 # https://developer.gnome.org/NetworkManager/1.0/ref-settings.html
 #
 
+import gi
+gi.require_version('NM', '1.0')
 from gi.repository import GLib, NM
 import sys, socket