Skip to content

Commit

Permalink
Reinstate dotenv loading for non-config options
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 19, 2024
1 parent 4addd0a commit 87517af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pydatalab/pydatalab/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pathlib
from typing import Any, Dict

from dotenv import dotenv_values
from flask import Flask, redirect, request, url_for
from flask_compress import Compress
from flask_cors import CORS
Expand Down Expand Up @@ -145,6 +146,8 @@ def create_app(
for key in mail_settings:
app.config[key] = mail_settings[key]

app.config.update(dotenv_values(dotenv_path=env_file))

LOGGER.info("Starting app with Flask app.config: %s", app.config)
_check_feature_flags(app)

Expand Down

0 comments on commit 87517af

Please sign in to comment.