Commit 2ac86a4b authored by SPeillet's avatar SPeillet
Browse files

BUG: fix s parameter

Showing with 3 additions and 3 deletions
+3 -3
......@@ -18,7 +18,7 @@ def main(argv):
cmd_path = os.path.dirname(__file__)
try:
opts, args = getopt.getopt(argv, 'w:o:d:f:t:p:s')
opts, args = getopt.getopt(argv, 'w:o:d:f:t:p:s:')
except getopt.GetoptError as err:
sys.exit(err)
......@@ -27,7 +27,7 @@ def main(argv):
sys.exit('%s does not exist'%shp_file)
output_folder = None
dates_file = None
dates_file = "None"
date_beg = None
date_end = None
download_platform = None
......@@ -63,7 +63,7 @@ def main(argv):
elif opt == '-s':
download_shp_file = str(val)
if os.path.exists(dates_file) == False :
if os.path.exists(dates_file) == False and dates_file != "None" :
try :
date_step = int(dates_file)
dates_file = os.path.join(output_folder,'output_dates.txt')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment