fix: harden Polygon operation validation
This commit is contained in:
+3
-1
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user