Merge pull request #155 from Pennyw0rth/neff-fix-modules-windows

main
Alex 2023-12-24 22:56:57 +01:00 committed by GitHub
commit 5f29e661b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"):