Skip to content

Commit fd85b3c

Browse files
committed
Fix loading env vars from .env by adding the path to load_dotenv()
1 parent 21bd5b3 commit fd85b3c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import os, json, logging, sys
2-
from logging.handlers import TimedRotatingFileHandler
32
from dotenv import load_dotenv
3+
from logging.handlers import TimedRotatingFileHandler
44
from urllib import parse
5-
load_dotenv()
5+
load_dotenv("./.env")
6+
67
class ConfigSingleton(type): # Inherit from "type" in order to gain access to method __call__
78
__registry = {}
89
def __call__(cls, *args, **kwargs):

0 commit comments

Comments
 (0)