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

Commit

Permalink
Fixing gi import warnings (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
raelgc committed Apr 4, 2016
1 parent f4566b6 commit bc4d879
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scudcloud/notifier.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from dbus.exceptions import DBusException
try:
from gi.repository import require_version
require_version('Notify', '0.7')
from gi.repository import Notify
except ImportError:
from scudcloud import notify2
Expand Down
2 changes: 2 additions & 0 deletions scudcloud/scudcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

# Auto-detection of Unity and Dbusmenu in gi repository
try:
from gi.repository import require_version
require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
except ImportError:
Unity = None
Expand Down

0 comments on commit bc4d879

Please sign in to comment.