mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-09-15 07:37:18 -04:00
Refactor plugin paths in scripts and tests to ensure consistent directory structure
This commit is contained in:
1 parent
9e38cfd8b4
commit
a06dc259a8
6 files changed
+10
-9
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user