Allow modules without configuration
This commit is contained in:
parent
a2c94aef01
commit
ba69d981dc
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue