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()