Skip to content

Commit

Permalink
allow to define config path via env (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacata authored Jun 1, 2021
1 parent e615f98 commit d2ab0c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/openeo_grass_gis_driver/actinia_processing/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@

# config can be overwritten by mounting *.ini files into folders inside
# the config folder.
DEFAULT_CONFIG_PATH = "config"
if os.environ.get('DEFAULT_CONFIG_PATH'):
DEFAULT_CONFIG_PATH = os.environ['DEFAULT_CONFIG_PATH']
else:
DEFAULT_CONFIG_PATH = "/etc/default/openeo-grassgis-driver"
CONFIG_FILES = [str(f) for f in Path(
DEFAULT_CONFIG_PATH).glob('**/*.ini') if f.is_file()]
GENERATED_CONFIG = DEFAULT_CONFIG_PATH + '/openeo-grassgis-driver.cfg'
Expand Down

0 comments on commit d2ab0c3

Please sign in to comment.