[pygobject/gsoc2009: 6/160] Fix girepository's overrides modules
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 6/160] Fix girepository's overrides modules
- Date: Fri, 14 Aug 2009 21:22:35 +0000 (UTC)
commit 963e6d9772fe16506fc574ba69ce1b9dd6fc4e81
Author: Simon van der Linden <simon vanderlinden student uclouvain be>
Date: Tue Jun 23 00:07:21 2009 +0200
Fix girepository's overrides modules
We forgot to rename bank by girepository in those modules and the import
statement in the importer didn't work.
girepository/importer.py | 2 +-
girepository/overrides/Gdk.py | 2 +-
girepository/overrides/Gtk.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/girepository/importer.py b/girepository/importer.py
index 5a91867..143a24f 100644
--- a/girepository/importer.py
+++ b/girepository/importer.py
@@ -39,7 +39,7 @@ class DynamicImporter(object):
from .module import DynamicModule
module_name = 'girepository.overrides.%s' % (name,)
try:
- module = __import__(module_name)
+ module = __import__(module_name, {}, {}, ['%sModule' % (name,)])
modtype = getattr(module, name + 'Module')
except ImportError, e:
modtype = DynamicModule
diff --git a/girepository/overrides/Gdk.py b/girepository/overrides/Gdk.py
index e2f05d7..c21368b 100644
--- a/girepository/overrides/Gdk.py
+++ b/girepository/overrides/Gdk.py
@@ -1,4 +1,4 @@
-from bank.module import DynamicModule
+from girepository.module import DynamicModule
class GdkModule(DynamicModule):
def created(self):
diff --git a/girepository/overrides/Gtk.py b/girepository/overrides/Gtk.py
index 1f718c3..f83240c 100644
--- a/girepository/overrides/Gtk.py
+++ b/girepository/overrides/Gtk.py
@@ -1,4 +1,4 @@
-from bank.module import DynamicModule
+from girepository.module import DynamicModule
class GtkModule(DynamicModule):
def created(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]