From e5d28d058ebb51f2c301037c971aedd68740cf0e Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 12 May 2013 10:22:24 -0400 Subject: there is no os.touch original-commit-id: 05ceafe614def25e599f839bd86d03292fdbc5b0 --- gfx.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gfx.py') diff --git a/gfx.py b/gfx.py index 8b9a66f..2c98a5a 100644 --- a/gfx.py +++ b/gfx.py @@ -1440,7 +1440,7 @@ def mass_to_colored_png(debug=False): to_png(os.path.join(root, name), None, os.path.join(root, os.path.splitext(name)[0]+'.pal')) else: to_png(os.path.join(root, name)) - os.touch(os.path.join(root, name)) + os.utime(os.path.join(root, name), None) # only monster and trainer pics for now for root, dirs, files in os.walk('../gfx/pics/'): @@ -1451,14 +1451,14 @@ def mass_to_colored_png(debug=False): to_png(os.path.join(root, name), None, os.path.join(root, 'normal.pal')) else: to_png(os.path.join(root, name)) - os.touch(os.path.join(root, name)) + os.utime(os.path.join(root, name), None) for root, dirs, files in os.walk('../gfx/trainers/'): for name in files: if debug: print os.path.splitext(name), os.path.join(root, name) if os.path.splitext(name)[1] == '.2bpp': to_png(os.path.join(root, name), None, os.path.join(root, name[:-5]+'.pal')) - os.touch(os.path.join(root, name)) + os.utime(os.path.join(root, name), None) def mass_decompress(debug=False): @@ -1483,7 +1483,7 @@ def mass_decompress(debug=False): else: with open(os.path.join(root, name), 'rb') as lz: de = Decompressed(lz.read()) to_file(os.path.join(root, os.path.splitext(name)[0]+'.2bpp'), de.output) - os.touch(os.path.join(root, name)) + os.utime(os.path.join(root, name), None) def append_terminator_to_lzs(directory): # fix lzs that were extracted with a missing terminator -- cgit v1.2.3