22 lines
568 B
Python
22 lines
568 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
hyperstitionstud_io.graph.cli — Location-Independent Knowledge Graph CLI Entrypoint (`hs-kg-build`).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import subprocess
|
|
import sys
|
|
from hyperstitionstud_io.config import load_workspace_config
|
|
|
|
|
|
def main() -> int:
|
|
cfg = load_workspace_config()
|
|
kg_script = cfg.knowledge_graph_dir / "scripts" / "build_encyclopedia_knowledge_graph.py"
|
|
res = subprocess.run([sys.executable, str(kg_script), *sys.argv[1:]])
|
|
return res.returncode
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|