79301828

Date: 2024-12-22 22:24:09
Score: 3.5
Natty:
Report link

I have the same issue when my .env is placed in the root of the VScode workspace. It affected me when using it in jupyter notebook. My current workaround is to use _ = load_dotenv(override=True) when loading environment variables from the file.

It seems that vscode automatically source the .env file to create the environment variables when the file is placed at the root. I didn't know that before.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: Pan