fix(security): use sys.executable in subprocess call (B603 #743)

This commit is contained in:
TPTBusiness
2026-04-29 17:03:09 +02:00
parent 51e37d7bb5
commit 4259a12e64
@@ -1,3 +1,4 @@
import sys
import logging
import os
from pathlib import Path
@@ -966,7 +967,7 @@ class QlibFactorRunner(CachedRunner[QlibFactorExperiment]):
shutil.copy(str(full_data), str(tmp / "intraday_pv.h5"))
ret = subprocess.run(
["python", "factor.py"],
[sys.executable, "factor.py"],
cwd=str(tmp),
capture_output=True,
timeout=300,