-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
executable file
·27 lines (21 loc) · 790 Bytes
/
Copy pathmain.py
File metadata and controls
executable file
·27 lines (21 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Mosaite Project Setup & Environment Manager
Punto de acceso principal para lanzar la TUI.
"""
from tui.app import MosaiteApp
import sys
def run_app():
"""Inicia la aplicación TUI."""
# Bucle para manejar el reinicio de la app (ej. al finalizar el setup)
while True:
# Añadimos una comprobación de la versión de Python aquí
if sys.version_info < (3, 11):
print("Error: Este script requiere Python 3.10 o superior.", file=sys.stderr)
sys.exit(1)
app = MosaiteApp()
exit_result = app.run()
# Si la app sale con "RESTART", el bucle continúa.
if exit_result != "RESTART":
break # Salir del bucle y terminar el programa
if __name__ == "__main__":
run_app()