23 lines
426 B
Python
Executable File
23 lines
426 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import runpy
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
# Preserve the original validation behaviour.
|
|
|
|
if len(sys.argv) > 1 and sys.argv[1] == "validate":
|
|
runpy.run_path(
|
|
str(ROOT / "bin/absdev-deploy-validate.py"),
|
|
run_name="__main__",
|
|
)
|
|
else:
|
|
from core.inspection_cli import main
|
|
|
|
sys.exit(main())
|