2026-04-21 12:50:17 +00:00
|
|
|
#!/usr/bin/env python3
|
2026-04-22 17:44:13 +00:00
|
|
|
"""Compatibility wrapper for the PaperForge Lite setup wizard."""
|
2026-04-21 12:50:17 +00:00
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
import subprocess
|
2026-04-22 17:44:13 +00:00
|
|
|
import sys
|
2026-04-21 12:50:17 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main() -> int:
|
2026-04-22 17:44:13 +00:00
|
|
|
repo_root = Path(__file__).resolve().parents[1]
|
|
|
|
|
wizard = repo_root / "setup_wizard.py"
|
|
|
|
|
if not wizard.exists():
|
|
|
|
|
print(f"[ERR] setup_wizard.py not found: {wizard}")
|
2026-04-21 12:50:17 +00:00
|
|
|
return 1
|
2026-04-22 17:44:13 +00:00
|
|
|
return subprocess.run([sys.executable, str(wizard), *sys.argv[1:]]).returncode
|
2026-04-21 12:50:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2026-04-22 17:44:13 +00:00
|
|
|
raise SystemExit(main())
|