summaryrefslogtreecommitdiffstats
path: root/gi
diff options
context:
space:
mode:
authorSimon van der Linden <svdlinden@src.gnome.org>2009-11-25 16:53:55 +0100
committerSimon van der Linden <svdlinden@src.gnome.org>2009-11-25 16:53:55 +0100
commit4a373b8ad6ec137e911b92a3e745e0fd76541292 (patch)
tree96e6d0f258886c2257aa3bc8941da477c5febefb /gi
parentfc3dca018e85aee34ade79d104ebd8cdd1dd5968 (diff)
downloadpygi-4a373b8ad6ec137e911b92a3e745e0fd76541292.tar.gz
pygi-4a373b8ad6ec137e911b92a3e745e0fd76541292.tar.xz
pygi-4a373b8ad6ec137e911b92a3e745e0fd76541292.zip
Use the right variable when looking up in sys.modules
Diffstat (limited to 'gi')
-rw-r--r--gi/importer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/importer.py b/gi/importer.py
index 5e7dfc3..f283a41 100644
--- a/gi/importer.py
+++ b/gi/importer.py
@@ -66,7 +66,7 @@ class DynamicImporter(object):
def load_module(self, fullname):
if fullname in sys.modules:
- return sys.modules[name]
+ return sys.modules[fullname]
path, namespace = fullname.rsplit('.', 1)