diff --git a/CoreModules/plugin_interface.py b/CoreModules/plugin_interface.py index 3249e12..9632bd1 100644 --- a/CoreModules/plugin_interface.py +++ b/CoreModules/plugin_interface.py @@ -123,7 +123,7 @@ def ImportPlugins(app: FastAPI, plugin_dir:str = "Plugins") -> None: plugin = plugin_class() if plugin.is_enable_plugin() == False: continue - router = plugin.execute(f"/{module_file}") + router = plugin.execute(f"/{module_file.GetFullPath().replace(".py", '')}") if router: app.include_router(router, prefix=f"/api", tags=[plugin.get_plugin_tag()]) except Exception as e: