From 2c8e601129147a04b8f3aee299c0cf4365b258e4 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Wed, 9 May 2007 14:17:22 +0000 Subject: Fixed use of __import__ incompatible with python2.4. --- RepSys/plugins/__init__.py | 8 ++++---- 1 file 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() -- cgit v1.2.1