diff --git a/rdagent/app/cli.py b/rdagent/app/cli.py index dca1492a6..69350c09a 100644 --- a/rdagent/app/cli.py +++ b/rdagent/app/cli.py @@ -33,14 +33,14 @@ def ui(port=80, log_dir="", debug=False): start web app to show the log traces. """ with rpath("rdagent.log.ui", "app.py") as app_path: - cmds = ["streamlit", "run", app_path, f"--server.port={port}"] + cmds = ["streamlit", "run", str(app_path), f"--server.port={port}"] if log_dir or debug: cmds.append("--") if log_dir: cmds.append(f"--log_dir={log_dir}") if debug: cmds.append("--debug") - subprocess.run(cmds) + subprocess.run(" ".join(cmds), shell=True) # shell=True will make the environment work better. def app():