Skip to content

Commit 42bb417

Browse files
committed
Remove redundant .env
1 parent fd85b3c commit 42bb417

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/config.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
from dotenv import load_dotenv
33
from logging.handlers import TimedRotatingFileHandler
44
from urllib import parse
5-
load_dotenv("./.env")
5+
"""
6+
https://pypi.org/project/python-dotenv/
7+
By default, load_dotenv() will:
68
9+
Look for a .env file in the same directory as the Python script (or higher up the directory tree).
10+
Read each key-value pair and add it to os.environ.
11+
Not override an environment variable that is already set, unless you explicitly pass override=True.
12+
"""
13+
load_dotenv()
714
class ConfigSingleton(type): # Inherit from "type" in order to gain access to method __call__
815
__registry = {}
916
def __call__(cls, *args, **kwargs):

0 commit comments

Comments
 (0)