Skip to content
Snippets Groups Projects
Commit 0ab1c1e8 authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

ENH : Add a protection on geoid definition for configuration file auto-generation

parent e8f23b9f
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,11 @@ def askForMultiSlc(dataConfig) : ...@@ -118,7 +118,11 @@ def askForMultiSlc(dataConfig) :
func_utils.check_ifExist(Geoid) func_utils.check_ifExist(Geoid)
else : else :
Geoid = os.getenv('OTB_GEOID_FILE') Geoid = os.getenv('OTB_GEOID_FILE')
if not Geoid :
prRed("Undefined geoid (empty OTB_GEOID_FILE environnement variable)")
inPurple("Please indicate a geoid file by setting path or with OTB_GEOID_FILE environnement variable")
quit()
for retry in range(1,6): for retry in range(1,6):
# Start/End date for image selection (5 retries for this selection) # Start/End date for image selection (5 retries for this selection)
res_date = inLightPurple("Would you like to specify a start and end date for image selection (yes/no) : ") res_date = inLightPurple("Would you like to specify a start and end date for image selection (yes/no) : ")
......
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