Files
forge/forge-gui/tools/migrateUpcoming.py
Rob Schnautz 6ca034eab9 React to removal of Spike Weaver by using the effect if it's already planning to do later
Don't leave blockers if planning to use fog effect, except the card that will do so. (might need to tap to use it, or might get killed if attacking)
2019-03-24 17:04:53 +00:00

17 lines
564 B
Python

import os
import subprocess
cardsfolder = os.path.join(os.path.dirname(os.getcwd()), 'res', 'cardsfolder')
upcoming = os.path.join(cardsfolder, 'upcoming')
for dirName, subdirList, fileList in os.walk(upcoming):
for filename in fileList:
if filename.startswith("."):
continue
curLocation = os.path.join(upcoming, filename)
newFile = os.path.join(cardsfolder, filename[0], filename)
if os.path.exists(newFile):
subprocess.call('git rm %s' % (curLocation), shell=True)
else:
subprocess.call('git mv %s %s' % (curLocation, newFile), shell=True)