diff --git a/deploy/profile-scripts/meta_growth.py b/deploy/profile-scripts/meta_growth.py index 49072b7d..173f4349 100644 --- a/deploy/profile-scripts/meta_growth.py +++ b/deploy/profile-scripts/meta_growth.py @@ -19,7 +19,7 @@ import os import sys import datetime -SCANNER_PATH = "/home/hmo/MoFin/scripts/hardcode_scanner.py" +SCANNER_PATH = "/home/hmo/MoFin/deploy/profile-scripts/hardcode_scanner.py" PROFILE_SCANNER = "/home/hmo/.hermes/profiles/position-analyst/scripts/hardcode_scanner.py" REGISTRY_PATH = "/home/hmo/web-dashboard/data/growth_registry.json" EXTENSION_MARKER = "# 扩展点 — meta_growth 在此追加新规则" diff --git a/deploy/profile-scripts/mofin_collect.py b/deploy/profile-scripts/mofin_collect.py index 904e7bdb..f234a11e 100644 --- a/deploy/profile-scripts/mofin_collect.py +++ b/deploy/profile-scripts/mofin_collect.py @@ -249,7 +249,7 @@ for script, timeout in SCRIPTS: # LLM 禁止自行调用原始API解析价格 PRICE_SCRIPT = BASE / "stock_quote.py" if not PRICE_SCRIPT.exists(): - PRICE_SCRIPT = Path("/home/hmo/MoFin/scripts/stock_quote.py") + PRICE_SCRIPT = Path("/home/hmo/MoFin/deploy/profile-scripts/stock_quote.py") if PRICE_SCRIPT.exists(): print("--- stock_quote.py ---", flush=True) try: diff --git a/deploy/profile-scripts/promote_candidates.py b/deploy/profile-scripts/promote_candidates.py index d0602443..1c8aa32a 100644 --- a/deploy/profile-scripts/promote_candidates.py +++ b/deploy/profile-scripts/promote_candidates.py @@ -162,7 +162,7 @@ def main(): if newly_added: try: import subprocess as _sp - r = _sp.run(["python3", "/home/hmo/MoFin/scripts/per_stock_reassess.py", code], + r = _sp.run(["python3", "/home/hmo/MoFin/deploy/profile-scripts/per_stock_reassess.py", code], capture_output=True, text=True, timeout=480) if r.returncode == 0: print(f" 重评完成", flush=True) diff --git a/deploy/profile-scripts/review_needed_watchdog.py b/deploy/profile-scripts/review_needed_watchdog.py index 82286fdb..13751ed6 100644 --- a/deploy/profile-scripts/review_needed_watchdog.py +++ b/deploy/profile-scripts/review_needed_watchdog.py @@ -64,7 +64,7 @@ def main(): print(f" 🔄 {name}({code}) 第{retries}次重试...") import subprocess r = subprocess.run( - [sys.executable, "/home/hmo/MoFin/scripts/per_stock_reassess.py", code], + [sys.executable, "/home/hmo/MoFin/deploy/profile-scripts/per_stock_reassess.py", code], capture_output=True, text=True, timeout=30 ) out = (r.stdout or "") + (r.stderr or "") diff --git a/deploy/profile-scripts/stale_detector.py b/deploy/profile-scripts/stale_detector.py index fc805b83..30e1450c 100644 --- a/deploy/profile-scripts/stale_detector.py +++ b/deploy/profile-scripts/stale_detector.py @@ -26,7 +26,7 @@ def fetch_prices(codes): try: import subprocess script = None - for p in ["/home/hmo/MoFin/scripts/stock_quote.py", "/home/hmo/MoFin/stock_quote.py"]: + for p in ["/home/hmo/MoFin/deploy/profile-scripts/stock_quote.py", "/home/hmo/MoFin/stock_quote.py"]: if os.path.exists(p): script = p break @@ -144,7 +144,7 @@ def main(): if reassess_scripts: # 调用 per_stock_reassess(每轮最多5只,防LLM慢导致整批超时;其余下轮继续) reassess_path = None - for p in ['/home/hmo/MoFin/scripts/per_stock_reassess.py', + for p in ['/home/hmo/MoFin/deploy/profile-scripts/per_stock_reassess.py', '/home/hmo/.hermes/profiles/position-analyst/scripts/per_stock_reassess.py']: if os.path.exists(p): reassess_path = p