Fix project root since script was moved
This commit is contained in:
parent
7f10cfe3c8
commit
b86cae7431
|
@ -17,7 +17,7 @@ if __name__ == '__main__':
|
||||||
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||||
logging.basicConfig(level=logging.INFO, format=log_fmt)
|
logging.basicConfig(level=logging.INFO, format=log_fmt)
|
||||||
|
|
||||||
project_dir = os.path.join(os.path.dirname(__file__), os.pardir)
|
project_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)
|
||||||
dotenv_path = os.path.join(project_dir, '.env')
|
dotenv_path = os.path.join(project_dir, '.env')
|
||||||
dotenv.load_dotenv(dotenv_path)
|
dotenv.load_dotenv(dotenv_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue