Fix a copy/past bug in _compressFile (bad filename)
This commit is contained in:
parent
4f4e464843
commit
4d4fcf4075
3
iwla.py
3
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user