feature/integracion-cpanel-asrecovery
This commit is contained in:
36
app/config/__init__.py
Normal file
36
app/config/__init__.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""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",
|
||||
]
|
||||
Reference in New Issue
Block a user