Fix import script to use mounted path instead of __file__

Made-with: Cursor
This commit is contained in:
Talal Sharabi
2026-03-15 01:27:48 +04:00
parent c919e83526
commit c43b4ae9f2

View File

@@ -13,8 +13,10 @@ import os
import pickle
import sys
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
JSON_PATH = os.path.join(SCRIPT_DIR, "pathways_2_rw.json")
JSON_PATH = os.environ.get(
"TIPS_JSON_PATH",
"/mnt/custom/scripts/pathways_2_rw.json",
)
def main():