Files
ansible-tui/app.py
2025-11-13 01:02:07 +01:00

25 lines
591 B
Python

#!/usr/bin/env python3
from __future__ import annotations
import sys
from pathlib import Path
def _add_src_to_path() -> None:
root = Path(__file__).resolve().parent
src = root / "src"
if src.exists():
p = str(src)
if p not in sys.path:
sys.path.insert(0, p)
def main() -> None:
_add_src_to_path()
try:
from tui.app import main as textual_main # type: ignore
except Exception as exc:
print("Fehler beim Laden der textual-basierten TUI:", exc)
sys.exit(1)
textual_main()
if __name__ == "__main__":
main()