diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-09 14:17:22 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-09 14:17:22 +0000 |
commit | 2c8e601129147a04b8f3aee299c0cf4365b258e4 (patch) | |
tree | c888eca3e561674d1062df8bb5c355d714c55bdd | |
parent | 3c5a6e1ad7134dda041bec51a9fb50f3d51976b9 (diff) | |
download | mgarepo-2c8e601129147a04b8f3aee299c0cf4365b258e4.tar mgarepo-2c8e601129147a04b8f3aee299c0cf4365b258e4.tar.gz mgarepo-2c8e601129147a04b8f3aee299c0cf4365b258e4.tar.bz2 mgarepo-2c8e601129147a04b8f3aee299c0cf4365b258e4.tar.xz mgarepo-2c8e601129147a04b8f3aee299c0cf4365b258e4.zip |
Fixed use of __import__ incompatible with python2.4.
-rw-r--r-- | RepSys/plugins/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/RepSys/plugins/__init__.py b/RepSys/plugins/__init__.py index 8bf4521..e4f4e08 100644 --- a/RepSys/plugins/__init__.py +++ b/RepSys/plugins/__init__.py @@ -8,13 +8,13 @@ def load(): for entry in os.listdir(pluginsdir): if entry != "__init__.py" and entry.endswith(".py"): name = entry[:-3] - loaded[name] = __import__("RepSys.plugins."+name, - fromlist=[name]) + loaded[name] = __import__("RepSys.plugins."+name, {}, {}, + [name]) elif os.path.isdir(entry): initfile = os.path.join(entry, "__init__.py") if os.path.isfile(initfile): - loaded[entry] = __import__("RepSys.plugins."+entry, - fromlist=[entry]) + loaded[entry] = __import__("RepSys.plugins."+entry, {}, {}, + [entry]) def list(): return loaded.keys() |