From 71cd0478a20687a30f79e55761621b86ead2223b Mon Sep 17 00:00:00 2001 From: AlxdrPolyakov <122611538+AlxdrPolyakov@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:18:35 +0000 Subject: [PATCH] Create run_streamlit_app_entry_point.py --- wise_pizza/run_streamlit_app_entry_point.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wise_pizza/run_streamlit_app_entry_point.py diff --git a/wise_pizza/run_streamlit_app_entry_point.py b/wise_pizza/run_streamlit_app_entry_point.py new file mode 100644 index 0000000..6c11f00 --- /dev/null +++ b/wise_pizza/run_streamlit_app_entry_point.py @@ -0,0 +1,15 @@ +import os +import runpy +import sys + +import wise_pizza + + +def main() -> None: + streamlit_script_path = os.path.join(os.path.dirname(wise_pizza.__file__), "streamlit_app.py") + sys.argv = ["streamlit", "run", streamlit_script_path ] + runpy.run_module("streamlit", run_name="__main__") + + +if __name__ == "__main__": + main()