From 457999591aebf08d68fd32115b8909a9eb9f3ab2 Mon Sep 17 00:00:00 2001 From: JopaXd Date: Fri, 30 Apr 2021 22:24:01 +0200 Subject: [PATCH] Changed subprocess.run command in launch_ui function --- src/opyrator/ui/streamlit_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opyrator/ui/streamlit_ui.py b/src/opyrator/ui/streamlit_ui.py index 21136ba..8164167 100644 --- a/src/opyrator/ui/streamlit_ui.py +++ b/src/opyrator/ui/streamlit_ui.py @@ -53,7 +53,7 @@ def launch_ui(opyrator_path: str, port: int = 8501) -> None: python_path = f"set PYTHONPATH=%PYTHONPATH%;{getcwd()} &&" subprocess.run( - f"{python_path} {sys.executable} -m streamlit run --server.port={port} --server.headless=True --runner.magicEnabled=False --server.maxUploadSize=50 --browser.gatherUsageStats=False {f.name}", + f'''{python_path} "{sys.executable}" -m streamlit run --server.port={port} --server.headless=True --runner.magicEnabled=False --server.maxUploadSize=50 --browser.gatherUsageStats=False {f.name}''', shell=True, )