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
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) |