aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/plugins/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/plugins/__init__.py')
-rw-r--r--RepSys/plugins/__init__.py8
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()