mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-25 21:17:12 +01:00
11 lines
419 B
Python
11 lines
419 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 file in fileList:
|
||
|
curLocation = os.path.join(upcoming, file)
|
||
|
newFile = os.path.join(cardsfolder, file[0], file)
|
||
|
subprocess.call('svn rename %s %s' % (curLocation, newFile), shell=True)
|