This commit is contained in:
2026-03-08 15:54:23 +08:00
parent 9a6585b72e
commit 1d7c722262
+6 -1
View File
@@ -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]:
"""