We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd85b3c commit 42bb417Copy full SHA for 42bb417
1 file changed
src/config.py
@@ -2,8 +2,15 @@
2
from dotenv import load_dotenv
3
from logging.handlers import TimedRotatingFileHandler
4
from urllib import parse
5
-load_dotenv("./.env")
+"""
6
+https://pypi.org/project/python-dotenv/
7
+By default, load_dotenv() will:
8
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()
14
class ConfigSingleton(type): # Inherit from "type" in order to gain access to method __call__
15
__registry = {}
16
def __call__(cls, *args, **kwargs):
0 commit comments