We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be2332 commit 6e34994Copy full SHA for 6e34994
modmail/addons/plugins.py
@@ -314,7 +314,7 @@ def walk_plugin_files(
314
315
# calculate the module name, dervived from the relative path
316
relative_path = pathlib.Path(path).relative_to(BASE_PLUGIN_PATH)
317
- module_name = relative_path.__str__().rstrip(".py").replace("/", ".")
+ module_name = ".".join(relative_path.parent.parts) + "." + relative_path.stem
318
module_name = plugins.__name__ + "." + module_name
319
logger.trace(f"{module_name =}")
320
0 commit comments