diff --git a/flexmeasures/utils/config_utils.py b/flexmeasures/utils/config_utils.py index 3ce3e1b43..f6e3e0645 100644 --- a/flexmeasures/utils/config_utils.py +++ b/flexmeasures/utils/config_utils.py @@ -82,7 +82,7 @@ def read_config(app: Flask, custom_path_to_config: str | None): path_to_config_instance = os.path.join(app.instance_path, "flexmeasures.cfg") # Custom config: not when testing (that should run completely on defaults) and documentation - if not app.testing and app.env != "documentation": + if not app.testing: used_path_to_config = read_custom_config( app, custom_path_to_config, path_to_config_home, path_to_config_instance )