fix: use relative imports in traefik plugin to prevent double-registration; resolve PLUGIN_DIR path
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ def create_app(
|
||||
# Run migrations (core + plugin) synchronously before event loop starts
|
||||
if not testing:
|
||||
from .core.migration_runner import run_migrations, get_plugin_migration_dirs
|
||||
_plugin_dir = Path(app.config["PLUGIN_DIR"])
|
||||
_plugin_dir = Path(app.config["PLUGIN_DIR"]).resolve()
|
||||
_plugin_migration_dirs = get_plugin_migration_dirs(
|
||||
_plugin_dir, app.config["PLUGINS"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user