python-keyring/keyring-import-gi.patch

13 lines
432 B
Diff

diff --git a/keyring/backends/Gnome.py b/keyring/backends/Gnome.py
index 7a8a274..642bc80 100644
--- a/keyring/backends/Gnome.py
+++ b/keyring/backends/Gnome.py
@@ -3,6 +3,7 @@ import os
try:
from gi import Repository
if Repository.get_default().enumerate_versions('GnomeKeyring'):
+ import gi
gi.require_version('GnomeKeyring', '1.0')
from gi.repository import GnomeKeyring
except ImportError: