Run backend as module (python -m) in devserver instead of PATH-installed CLI.

This commit is contained in:
2026-08-31 20:26:30 +00:00
parent 475a2cdc3c
commit b0b216b784
+3 -1
View File
@@ -244,5 +244,7 @@ def setup_cli(
host = endpoints[0]["host"] host = endpoints[0]["host"]
port = endpoints[0]["port"] port = endpoints[0]["port"]
cmd = [cli, f"--listen={host}:{port}"] # Run the package as a module with the current interpreter, instead of
# relying on a PATH-installed CLI entry point.
cmd = [sys.executable, "-m", cli, f"--listen={host}:{port}"]
return f"http://{host}:{port}", cmd return f"http://{host}:{port}", cmd