Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

Commit

Permalink
Fixing importing (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
raelgc committed Apr 4, 2016
1 parent bc4d879 commit 11801a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scudcloud/notifier.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions scudcloud/scudcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11801a3

Please sign in to comment.