mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-13 01:08:06 +00:00
- formalised/fixed some precon image names/links
- added Sol's python script for checking for missing precon images
This commit is contained in:
16
forge-gui/tools/missingPreconFiles.py
Normal file
16
forge-gui/tools/missingPreconFiles.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from os import listdir, path
|
||||
|
||||
preconDecks = [ f.lower().replace("'",'').replace(',', '').replace(' ', '_')[:-4] for f in listdir('../res/quest/precons') if f.endswith('.dck') ]
|
||||
|
||||
with open('../res/lists/precon-images.txt') as inp:
|
||||
files = inp.read().strip().split('\n')
|
||||
preconIcons = [ path.basename(path.splitext(f)[0]).lower() for f in files if len(f) > 0 ]
|
||||
|
||||
preconDecks.sort()
|
||||
preconIcons.sort()
|
||||
|
||||
print "Decks without Icons"
|
||||
print set(preconDecks) - set(preconIcons)
|
||||
|
||||
print "Icons without Decks"
|
||||
print set(preconIcons) - set(preconDecks)
|
||||
Reference in New Issue
Block a user