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]: """