python-dotenv
python-dotenv copied to clipboard
dotenv does not reload .env when using in uv
The .env does not reload when run with the command:
uv run --env-file .env python app/api
My app/api/__main__
uvicorn.run(
"app.api:app", reload=True,...
workaround: open a new terminal should work.
(note: if I use pipenv -> it's OK)