Skip to content
#

dotenv

Here are 504 public repositories matching this topic...

checor
checor commented Aug 19, 2019

Hello,

Trying to run the WSGI example on readme doesn't work when runned in any other folder than the one the .env lives.

For example, having a folder with a .env a file named main.py:

import os
import dotenv

print("Loading file:", os.path.join(os.path.dirname(os.path.dirname(__file__)), '.env'))
dotenv.read_dotenv(os.path.join(os.path.dirname(os.path.dirname(__file__)), '

Improve this page

Add a description, image, and links to the dotenv topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the dotenv topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.