fix: 清除硬编码API Key与机器特定路径,改用环境变量+混合式路径解析
This commit is contained in:
@@ -47,7 +47,8 @@ from cobol_testgen.read import resolve_copybooks, preprocess, extract_procedure_
|
||||
from cobol_testgen.core import build_branch_tree
|
||||
|
||||
try:
|
||||
src_path = Path("D:/cobol-java/sample_ソース_SAN01MAT.cbl")
|
||||
from _paths import SAMPLE_SRC_DIR
|
||||
src_path = SAMPLE_SRC_DIR / "sample_ソース_SAN01MAT.cbl"
|
||||
src = src_path.read_text(encoding="utf-8")
|
||||
sdir = str(src_path.parent)
|
||||
|
||||
@@ -89,7 +90,8 @@ section("2. HINA分類: 実プログラム判定精度")
|
||||
from hina.classifier import compute_confidence
|
||||
|
||||
# jcl-cobol-git の4プログラム
|
||||
cobol_git = Path("D:/cobol-java/jcl-cobol-git/cobol")
|
||||
from _paths import COBOL_GIT_ROOT
|
||||
cobol_git = COBOL_GIT_ROOT / "cobol"
|
||||
if cobol_git.exists():
|
||||
for f in ['CRDVAL', 'CRDCALC', 'CRDRPT', 'GENDATA']:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user