diff --git a/src/ModuleManager.py b/src/ModuleManager.py index ff293446..5f1bfa61 100644 --- a/src/ModuleManager.py +++ b/src/ModuleManager.py @@ -127,6 +127,8 @@ class ModuleManager(object): if os.path.isdir(path): type = ModuleType.DIRECTORY path = os.path.join(path, "__init__.py") + else: + path = "%s.py" % path return self.define_module(type, path)