Refactor plugin paths in scripts and tests to ensure consistent directory structure

This commit is contained in:
Jokob @NetAlertX committed 2026-08-10 03:51:23 +00:00
1 parent 9e38cfd8b4
commit a06dc259a8
6 files changed
+10 -9

No files matched your search

+3 -2
View File
@@ -21,9 +21,10 @@ import pytest
_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
_SERVER = os.path.join(_ROOT, "server")
_PLUGIN_DIR = os.path.join(_ROOT, "front", "plugins", "fritzbox")
_PLUGINS = os.path.join(_ROOT, "server", "plugins")
_PLUGIN_DIR = os.path.join(_ROOT, "server", "plugins", "fritzbox")
for _p in [_ROOT, _SERVER, _PLUGIN_DIR]:
for _p in [_ROOT, _SERVER, _PLUGINS, _PLUGIN_DIR]:
if _p not in sys.path:
sys.path.insert(0, _p)
+3 -2
View File
@@ -18,9 +18,10 @@ import pytest
_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
_SERVER = os.path.join(_ROOT, 'server')
_PLUGIN_DIR = os.path.join(_ROOT, 'front', 'plugins', 'rest_import')
_PLUGINS = os.path.join(_ROOT, 'server', 'plugins')
_PLUGIN_DIR = os.path.join(_ROOT, 'server', 'plugins', 'rest_import')
for _p in [_ROOT, _SERVER, _PLUGIN_DIR, os.path.join(_ROOT, 'front', 'plugins')]:
for _p in [_ROOT, _SERVER, _PLUGINS, _PLUGIN_DIR]:
if _p not in sys.path:
sys.path.insert(0, _p)