Private GIT

Skip to content
Snippets Groups Projects
Commit 5f428649 authored by Ruud's avatar Ruud
Browse files

Writing larger files fails on Windows. fix #1281

parent 8ed2a998
Branches
Tags
No related merge requests found
...@@ -78,7 +78,7 @@ class Plugin(object): ...@@ -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'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment