From 1d7c72226215f9dfbc0acd4421153a1e1fe4fcc6 Mon Sep 17 00:00:00 2001 From: SZCJW <792430652@qq.com> Date: Sun, 8 Mar 2026 15:54:23 +0800 Subject: [PATCH] x --- src/services/verification_service.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/services/verification_service.py b/src/services/verification_service.py index 8d92a95..02975b9 100644 --- a/src/services/verification_service.py +++ b/src/services/verification_service.py @@ -19,7 +19,12 @@ class GeometryVerificationService: """几何验证服务""" def __init__(self): - self.verification_script = Path(__file__).parent.parent / "scripts" / "verify_stp.py" + # 验证脚本在项目根目录的 scripts 文件夹下 + # __file__ = /path/to/project/src/services/verification_service.py + # parent = /path/to/project/src/services + # parent.parent = /path/to/project/src + # parent.parent.parent = /path/to/project (正确) + self.verification_script = Path(__file__).parent.parent.parent / "scripts" / "verify_stp.py" async def verify_stp_file(self, stp_path: str) -> Dict[str, Any]: """