Fixed recompressing after modification

This commit is contained in:
Sybren A. Stüvel
2018-02-23 14:26:57 +01:00
parent 67751d9a3e
commit 8e0b135eb3
3 changed files with 31 additions and 1 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ class BlendFile:
log.debug("recompressing modified blend file %s", self.raw_filepath)
self.fileobj.seek(os.SEEK_SET, 0)
with gzip.open(self.filepath, 'wb') as gzfile:
with gzip.open(str(self.filepath), 'wb') as gzfile:
while True:
data = self.fileobj.read(FILE_BUFFER_SIZE)
if not data: