Skip to content

Commit 5a61a20

Browse files
authored
Merge pull request #26 from JopaXd/fix
Changed subprocess.run command in launch_ui function
2 parents b0fc648 + 4579995 commit 5a61a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opyrator/ui/streamlit_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def launch_ui(opyrator_path: str, port: int = 8501) -> None:
5353
python_path = f"set PYTHONPATH=%PYTHONPATH%;{getcwd()} &&"
5454

5555
subprocess.run(
56-
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}",
56+
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}''',
5757
shell=True,
5858
)
5959

0 commit comments

Comments
 (0)