Added ability to specify multiple map lists
This commit is contained in:
parent
e78aa8db23
commit
c69f8515b2
|
@ -14,15 +14,16 @@ if __name__ == '__main__':
|
|||
current_timestamp = datetime.datetime.now().strftime('%Y%m%d-%H%M')
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--map-list', action='store')
|
||||
parser.add_argument('--map-list', action='append')
|
||||
#TODO: Add argument to pass path to osmosis
|
||||
#TODO: Add argument to pass path to output dir
|
||||
args = parser.parse_args()
|
||||
|
||||
map_list = []
|
||||
with open(args.map_list, 'r') as maps:
|
||||
for line in maps:
|
||||
map_list.append(line.strip())
|
||||
for alist in args.map_list:
|
||||
with open(alist, 'r') as maps:
|
||||
for line in maps:
|
||||
map_list.append(line.strip())
|
||||
|
||||
print('Creating working directories')
|
||||
if not os.path.exists('out'):
|
||||
|
|
Reference in a new issue