Files
game-jam-2020/triple-dungeon/resources/images/character/knight/fix.py
2020-04-20 02:02:25 -05:00

14 lines
450 B
Python

import shutil
import os
BASE = os.path.dirname(os.path.abspath(__file__))
files = os.listdir(BASE)
for file in filter(lambda filename: not filename.endswith(".py"), files):
before = file
after = file.replace("knight iso ", "")
after = after.replace("char_idle", "idle")
after = after.replace("char_run ", "run_")
after = after.replace("char_slice ", "slice_")
print(f'"{before}" -> "{after}"')
shutil.move(before, after)