Allow modules without configuration

This commit is contained in:
Némunaire 2012-08-16 05:23:45 +02:00
parent a2c94aef01
commit ba69d981dc

View file

@ -56,6 +56,8 @@ class ModuleLoader(SourceLoader):
self.config = xmlparser.parse_file(config_path)
if self.config.hasAttribute("name"):
self.name = self.config["name"]
else:
self.config = None
if os.path.isfile(path + fullname + ".py"):
self.source_path = path + self.name + ".py"