Writing larger files fails on Windows. fix #1281

This commit is contained in:
Ruud committed 2013-01-22 23:20:55 +01:00
1 parent 8ed2a99830
commit 5f428649c3
1 file changed
+1 -1
+1 -1
View File
@@ -78,7 +78,7 @@ class Plugin(object):
self.makeDir(os.path.dirname(path)) self.makeDir(os.path.dirname(path))
try: try:
f = open(path, 'w' if not binary else 'wb') f = open(path, 'w+' if not binary else 'w+b')
f.write(content) f.write(content)
f.close() f.close()
os.chmod(path, Env.getPermission('file')) os.chmod(path, Env.getPermission('file'))