From 11801a301638084bcf864d0187b5673d8b70b70a Mon Sep 17 00:00:00 2001 From: Rael Gugelmin Cunha Date: Mon, 4 Apr 2016 10:45:32 -0300 Subject: [PATCH] Fixing importing (#288) --- scudcloud/notifier.py | 4 ++-- scudcloud/scudcloud.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scudcloud/notifier.py b/scudcloud/notifier.py index f041c8c..40e68a3 100644 --- a/scudcloud/notifier.py +++ b/scudcloud/notifier.py @@ -1,7 +1,7 @@ from dbus.exceptions import DBusException try: - from gi.repository import require_version - require_version('Notify', '0.7') + import gi + gi.require_version('Notify', '0.7') from gi.repository import Notify except ImportError: from scudcloud import notify2 diff --git a/scudcloud/scudcloud.py b/scudcloud/scudcloud.py index 1eacb3a..ecaebf6 100755 --- a/scudcloud/scudcloud.py +++ b/scudcloud/scudcloud.py @@ -24,8 +24,8 @@ # Auto-detection of Unity and Dbusmenu in gi repository try: - from gi.repository import require_version - require_version('Unity', '7.0') + import gi + gi.require_version('Unity', '7.0') from gi.repository import Unity, Dbusmenu except ImportError: Unity = None