fix: harden Polygon operation validation

This commit is contained in:
Repinoid
2026-10-25 14:07:13 +03:00
parent 3df89ec9e7
commit e3a031ce50
18 changed files with 803 additions and 346 deletions
+3 -1
View File
@@ -285,7 +285,9 @@ def main():
sys.exit(1)
stands_dir = sys.argv[1]
services_dir = sys.argv[2] if len(sys.argv) > 2 else os.path.join(os.path.dirname(__file__) or ".", "services")
services_dir = sys.argv[2] if len(sys.argv) > 2 else os.path.join(
os.path.dirname(os.path.abspath(__file__)), "services"
)
if not os.path.isdir(stands_dir):
print(f"ERROR: STANDS_DIR not found: {stands_dir}")