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')
|
current_timestamp = datetime.datetime.now().strftime('%Y%m%d-%H%M')
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
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 osmosis
|
||||||
#TODO: Add argument to pass path to output dir
|
#TODO: Add argument to pass path to output dir
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
map_list = []
|
map_list = []
|
||||||
with open(args.map_list, 'r') as maps:
|
for alist in args.map_list:
|
||||||
for line in maps:
|
with open(alist, 'r') as maps:
|
||||||
map_list.append(line.strip())
|
for line in maps:
|
||||||
|
map_list.append(line.strip())
|
||||||
|
|
||||||
print('Creating working directories')
|
print('Creating working directories')
|
||||||
if not os.path.exists('out'):
|
if not os.path.exists('out'):
|
||||||
|
|
Reference in a new issue