fix: MoFin/scripts/死路径全部改指deploy/profile-scripts/
- promote/review_needed_watchdog引用已删除的per_stock_reassess.py - meta_growth→hardcode_scanner, mofin_collect→stock_quote, stale_detector同 - 清影子副本的连锁遗留
This commit is contained in:
@@ -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 在此追加新规则"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 "")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user