Skip to content

runner

Helper that launches the Streamlit web placeholder through the Streamlit CLI.

main()

Run the Streamlit app via the CLI to ensure a proper ScriptRunContext.

Source code in src/refi_calculator/web/runner.py
11
12
13
14
15
def main() -> None:
    """Run the Streamlit app via the CLI to ensure a proper ScriptRunContext."""
    script_path = Path(__file__).resolve().parent / "app.py"
    sys.argv = ["streamlit", "run", str(script_path)]
    stcli.main()