Merge pull request #155 from Pennyw0rth/neff-fix-modules-windows
commit
5f29e661b7
|
@ -24,7 +24,7 @@ class ModuleLoader:
|
||||||
if not hasattr(module, "name"):
|
if not hasattr(module, "name"):
|
||||||
self.logger.fail(f"{module_path} missing the name variable")
|
self.logger.fail(f"{module_path} missing the name variable")
|
||||||
module_error = True
|
module_error = True
|
||||||
elif hasattr(module, "name") and module.name != module_path.split("/")[-1][:-3]:
|
elif hasattr(module, "name") and module.name != module_path.split("/")[-1].split("\\")[-1][:-3]:
|
||||||
self.logger.fail(f"{module_path} filename must match the module name {module.name}")
|
self.logger.fail(f"{module_path} filename must match the module name {module.name}")
|
||||||
module_error = True
|
module_error = True
|
||||||
elif not hasattr(module, "description"):
|
elif not hasattr(module, "description"):
|
||||||
|
|
Loading…
Reference in New Issue