Skip to content

Commit

Permalink
Create run_streamlit_app_entry_point.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxdrPolyakov authored Dec 14, 2023
1 parent 3bfd3bd commit 71cd047
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wise_pizza/run_streamlit_app_entry_point.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 71cd047

Please sign in to comment.