29 lines
957 B
Python
Executable File
29 lines
957 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Thicket launcher — the one-command entry point.
|
|
|
|
python thicket.py # the console (GUI)
|
|
python thicket.py --dry-run # readiness report, no GUI
|
|
python thicket.py --ingest DIR --vault DIR # headless batch
|
|
|
|
Every mode and flag is owned by ``thicket.cli``; this file only finds
|
|
the package and defers.
|
|
|
|
One environment, always: the project venv at <project>/.venv holds
|
|
every dependency (bootstrap_sources.sh installs its git-built packages
|
|
there). Run via .venv/bin/python, the /mnt/AI/tools/bin/thicket
|
|
launcher, or after activating the venv.
|
|
"""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Guarantee the in-tree package resolves when invoked by path or from
|
|
# another directory (sys.path[0] normally covers this; belt-and-braces
|
|
# for embedded and interpreter edge cases).
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
|
|
from thicket.cli import main
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|