summaryrefslogtreecommitdiff
path: root/bin
diff options
authorJeff Lane <jeffrey.lane@canonical.com>2016-04-04 10:16:06 -0400
committerJeff Lane <jeffrey.lane@canonical.com>2016-04-04 10:16:06 -0400
commit397fd254534a86d64296cb0ee2ad09a141ea5fc4 (patch)
tree355cbe539820c9d7a201ec979c3ca4ff4b50bbb3 /bin
parenteff3386a38cb02ea39c601d2ca936408c07fcda1 (diff)
fixes PyGIWarning messages when running removable_stroage_watcher|test.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/removable_storage_test2
-rwxr-xr-xbin/removable_storage_watcher2
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/removable_storage_test b/bin/removable_storage_test
index 7377474..3502455 100755
--- a/bin/removable_storage_test
+++ b/bin/removable_storage_test
@@ -13,6 +13,8 @@ import sys
import tempfile
import time
+import gi
+gi.require_version('GUdev', '1.0')
from gi.repository import GUdev
from checkbox_support.dbus import connect_to_system_bus
diff --git a/bin/removable_storage_watcher b/bin/removable_storage_watcher
index 97fd071..794bb1b 100755
--- a/bin/removable_storage_watcher
+++ b/bin/removable_storage_watcher
@@ -7,6 +7,8 @@ import dbus
import logging
import sys
+import gi
+gi.require_version('GUdev', '1.0')
from gi.repository import GObject, GUdev
from checkbox_support.dbus import connect_to_system_bus