From dacce66d259fd9a68167ace1cdb497b00494558a Mon Sep 17 00:00:00 2001 From: jesusalva Date: Fri, 9 Feb 2018 22:55:27 -0200 Subject: Dyecmd tools --- dyecmd/fal.py | 12 ++++++++++++ dyecmd/unfall.py | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dyecmd/fal.py create mode 100644 dyecmd/unfall.py (limited to 'dyecmd') diff --git a/dyecmd/fal.py b/dyecmd/fal.py new file mode 100644 index 0000000..a064646 --- /dev/null +++ b/dyecmd/fal.py @@ -0,0 +1,12 @@ +# dyecmd ../../../client-data/graphics/items/generic/*.png +import os +a=open('script.sh', 'w') + +for file in os.listdir('.'): + try: + if '.png' in file: + a.write('./dyecmd '+file+' 1'+file) + a.write('\n') + except: + continue +a.close() diff --git a/dyecmd/unfall.py b/dyecmd/unfall.py new file mode 100644 index 0000000..91e5db5 --- /dev/null +++ b/dyecmd/unfall.py @@ -0,0 +1,13 @@ +# dyecmd ../../../client-data/graphics/items/equipment/*/*.png +import os +a=open('revert.sh', 'w') + +for f in os.listdir('.'): + try: + #for sub in os.listdir(folder): + if ('1' in f) and ('.png' in f): + a.write('mv '+f+' '+f[1:]) + a.write('\n') + except: + continue +a.close() -- cgit v1.2.3-70-g09d2