From 4d4fcf407522285f6ab3fe9ecb5be80671e60e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Mon, 15 Dec 2014 22:20:47 +0100 Subject: [PATCH] Fix a copy/past bug in _compressFile (bad filename) --- iwla.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iwla.py b/iwla.py index c5e55a6..e577b31 100755 --- a/iwla.py +++ b/iwla.py @@ -447,14 +447,13 @@ class IWLA(object): gz_path = path + '.gz' #print 'Compress %s => %s' % (path, gz_path) if not os.path.exists(gz_path) or\ - os.stat(filename).st_mtime > build_time: + os.stat(path).st_mtime > build_time: with open(path, 'rb') as f_in: with gzip.open(gz_path, 'wb') as f_out: f_out.write(f_in.read()) def _compressFiles(self, build_time, root): if not conf.compress_output_files: return - print root for rootdir, subdirs, files in os.walk(root, followlinks=True): for f in files: for ext in conf.compress_output_files: