diff --git a/gamestonk_terminal/config_terminal.py b/gamestonk_terminal/config_terminal.py index 2d5e74128ce..58469a4562b 100644 --- a/gamestonk_terminal/config_terminal.py +++ b/gamestonk_terminal/config_terminal.py @@ -1,7 +1,9 @@ import os from dotenv import load_dotenv -load_dotenv() +env_files = [f for f in os.listdir() if f.endswith(".env")] +if env_files: + load_dotenv(env_files[0]) # By default the jupyter notebook will be run on port 8888 PAPERMILL_NOTEBOOK_REPORT_PORT = "8888"