fix: 清除硬编码API Key与机器特定路径,改用环境变量+混合式路径解析
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
"""Prepare test data for Playwright E2E tests."""
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
FIXTURES = Path(__file__).parent / "fixtures"
|
||||
COBOL_GIT = Path(r"D:\cobol-java\jcl-cobol-git")
|
||||
COBOL_GIT = Path(
|
||||
os.environ.get("COBOL_GIT_ROOT",
|
||||
Path(__file__).resolve().parent.parent.parent / "jcl-cobol-git")
|
||||
)
|
||||
|
||||
|
||||
def prepare():
|
||||
|
||||
Reference in New Issue
Block a user