feat(cli:serve): use the full executable path to python

This commit is contained in:
Benex254
2024-10-06 01:25:22 +03:00
parent 6220b9c55d
commit 58c7427a47
+1 -1
View File
@@ -21,7 +21,7 @@ def serve(host, port):
from ...constants import APP_DIR
args = ["python", "-m", "fastapi", "run"]
args = [sys.executable, "-m", "fastapi", "run"]
if host:
args.extend(["--host", host])