s/dev\/null/os.devnull + add binary flag

For windows compatibility
This commit is contained in:
Florent 2015-09-08 08:43:04 +02:00
commit 3914d76287
5 changed files with 5 additions and 5 deletions

View file

@ -133,7 +133,7 @@ class Galleroob(ReplApplication):
name = '%03d.%s' % (i, ext)
print('Writing file %s' % name)
with open(name, 'w') as f:
with open(name, 'wb') as f:
f.write(img.data)
os.chdir(os.path.pardir)