From c69f8515b2dcb598fe6b1c09b4c04df8b81d95a7 Mon Sep 17 00:00:00 2001 From: Mike C Date: Tue, 12 Jan 2016 16:20:46 -0500 Subject: [PATCH] Added ability to specify multiple map lists --- process_maps.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/process_maps.py b/process_maps.py index def9ac4..95586de 100755 --- a/process_maps.py +++ b/process_maps.py @@ -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'):