37 lines
942 B
Python
37 lines
942 B
Python
"""Configuración de entorno, bootstrap y arranque."""
|
|
|
|
from .bootstrap import ensure_runtime_layout
|
|
from .env_loader import (
|
|
apply_env_overrides,
|
|
get_launch_options,
|
|
is_panel_configured,
|
|
load_env_file,
|
|
)
|
|
from .odbc_setup import configure_odbc_environment
|
|
from .autostart import register_autostart_if_requested
|
|
|
|
|
|
def initialize_runtime() -> None:
|
|
"""Prepara directorios, ODBC y auto-arranque (llamar antes de importar pyodbc)."""
|
|
ensure_runtime_layout()
|
|
configure_odbc_environment()
|
|
|
|
|
|
def initialize_env() -> None:
|
|
"""Post-bootstrap: carga .env y registra auto-arranque si aplica."""
|
|
load_env_file()
|
|
register_autostart_if_requested()
|
|
|
|
|
|
__all__ = [
|
|
"initialize_runtime",
|
|
"initialize_env",
|
|
"ensure_runtime_layout",
|
|
"load_env_file",
|
|
"apply_env_overrides",
|
|
"get_launch_options",
|
|
"is_panel_configured",
|
|
"configure_odbc_environment",
|
|
"register_autostart_if_requested",
|
|
]
|