python-dotenv icon indicating copy to clipboard operation
python-dotenv copied to clipboard

dotenv does not reload .env when using in uv

Open thanhlq opened this issue 8 months ago • 0 comments

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)

thanhlq avatar Jun 07 '25 02:06 thanhlq