mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Specify the path to .env file for reading keys (#582)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user