mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-09-20 04:41:32 -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
@@ -47,7 +47,7 @@ Edit `my_plugin/script.py` and implement your data collection logic:
|
||||
import sys
|
||||
import os
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../server'))
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../plugins'))
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../server/plugins'))
|
||||
|
||||
from plugin_helper import Plugin_Objects, mylog
|
||||
from helper import get_setting_value
|
||||
|
||||
Reference in new issue
Block a user