rename all knight animation files

This commit is contained in:
Xevion
2020-04-20 02:02:25 -05:00
parent 3d9a6d3eb4
commit d5cd8e8a66
39 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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)