uncommented campaigns i had commented out for testing
This commit is contained in:
parent
309157618d
commit
dae7d2f3ec
1 changed files with 1 additions and 2 deletions
|
@ -223,12 +223,11 @@ if __name__ == '__main__':
|
|||
|
||||
# Parse all unit data
|
||||
# This reads in units.cfg, giving us all the mainline units.
|
||||
#unitlist.add("{units.cfg}", "mainline")
|
||||
unitlist.add("{core/units.cfg}", "mainline")
|
||||
# Now we read each campaign in turn to get its units.
|
||||
campaigns = glob.glob("data/campaigns/*")
|
||||
for campaign in campaigns:
|
||||
dirname = campaign[5:] # strip leading data/
|
||||
if not dirname.startswith("campaigns/Under"): continue
|
||||
description = dirname[10:].replace("_", " ")
|
||||
unitlist.add("{%s}" % dirname, description)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue