Skip to content

Commit

Permalink
new i.sentinel modules: check if i.sentinel.download and i.sentinel.i…
Browse files Browse the repository at this point in the history
…mport are installed
  • Loading branch information
neteler committed Nov 29, 2020
1 parent 0834b8b commit e45f6a9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ def main():

global rm_regions, rm_rasters, rm_vectors

### check if we have the i.sentinel.download + i.sentinel.import addons
if not grass.find_program('i.sentinel.download', '--help'):
grass.fatal(_("The 'i.sentinel.download' module was not found, install it first:") +
"\n" +
"g.extension i.sentinel")
if not grass.find_program('i.sentinel.import', '--help'):
grass.fatal(_("The 'i.sentinel.import' module was not found, install it first:") +
"\n" +
"g.extension i.sentinel")

# parameters
settings = options['settings']
output = options['output']
Expand Down

0 comments on commit e45f6a9

Please sign in to comment.