diff --git a/modules/openapi-generator/src/main/resources/python-fastapi/README.mustache b/modules/openapi-generator/src/main/resources/python-fastapi/README.mustache index 8e6e65b7e8b..06776ba79bd 100644 --- a/modules/openapi-generator/src/main/resources/python-fastapi/README.mustache +++ b/modules/openapi-generator/src/main/resources/python-fastapi/README.mustache @@ -18,7 +18,7 @@ To run the server, please execute the following from the root directory: ```bash pip3 install -r requirements.txt -uvicorn main:app --host 0.0.0.0 --port {{serverPort}} +PYTHONPATH=src uvicorn openapi_server.main:app --host 0.0.0.0 --port {{serverPort}} ``` and open your browser at `http://localhost:{{serverPort}}/docs/` to see the docs.