mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
Update EditionTracking.py to work with new formats directory structure
This commit is contained in:
@@ -110,11 +110,11 @@ def initializeForgeCards():
|
|||||||
|
|
||||||
def initializeFormats():
|
def initializeFormats():
|
||||||
formats = {}
|
formats = {}
|
||||||
formatLocation = os.path.join(resDir, 'formats')
|
formatLocation = os.path.join(resDir, 'formats', 'Sanctioned')
|
||||||
print "Looking for formats in ", formatLocation
|
print "Looking for formats in ", formatLocation
|
||||||
for root, dirnames, filenames in os.walk(formatLocation):
|
for root, dirnames, filenames in os.walk(formatLocation):
|
||||||
for fileName in fnmatch.filter(filenames, '*.txt'):
|
for fileName in fnmatch.filter(filenames, '*.txt'):
|
||||||
if fileName not in ['standard.txt', 'Modern.txt']:
|
if fileName not in ['Standard.txt', 'Modern.txt']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
with open(os.path.join(root, fileName)) as formatFile:
|
with open(os.path.join(root, fileName)) as formatFile:
|
||||||
|
|||||||
Reference in New Issue
Block a user