mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-25 21:17:12 +01:00
29260c205d
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35700 269b9781-a132-4a9b-9d4e-f004f1b56b58
16 lines
541 B
Python
16 lines
541 B
Python
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) |