Initial commit
This commit is contained in:
21
create-maps-from-namelist.py
Normal file
21
create-maps-from-namelist.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from flashcards.maps import create_maps
|
||||
|
||||
|
||||
|
||||
if 0:
|
||||
# namelist you created before
|
||||
namelist_fname = 'base-units.txt'
|
||||
# dictionary key into config.data_file
|
||||
key = 'units_buildings'
|
||||
# how you want to name the output maps
|
||||
out_base_fname = 'base-units'
|
||||
elif 0:
|
||||
namelist_fname = 'research.txt'
|
||||
key = 'techs'
|
||||
out_base_fname = 'research'
|
||||
else:
|
||||
namelist_fname = 'buildings.txt'
|
||||
key = 'units_buildings'
|
||||
out_base_fname = 'buildings'
|
||||
|
||||
create_maps(namelist_fname, key, out_base_fname)
|
||||
Reference in New Issue
Block a user