Skip to content
Snippets Groups Projects
Commit b05a7566 authored by Thomas Germain's avatar Thomas Germain
Browse files

Merge branch 'feature-envvar-sen2cor' into 'master'

Add sen2cor bashrc path cfg environment variable option

See merge request espace-dev/sen2chain!22
parents 27844bdb 324a3b91
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -87,6 +87,11 @@ class Config:
else:
self._create_config()
# Override the Sen2cor Bashrc path with an environment variable if it exists
env_sen2cor_bashrc_paths = os.environ.get("SEN2CHAIN_SEN2COR_BASHRC_PATHS","")
if env_sen2cor_bashrc_paths:
self._config_params["SEN2COR PATH"]["sen2cor_bashrc_paths"] = env_sen2cor_bashrc_paths
self.config_dict = dict()
for section in self._config_params.sections():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment