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: