Commit c2ff5f0c authored by Denis Bilenko's avatar Denis Bilenko

Merge pull request #314 from jerynmathew/issue-312-fix

Added fix for issue #312. Encountering Windows error [183] when installi...
parents 33892431 a6161a93
......@@ -516,6 +516,8 @@ def atomic_write(filename, data):
f.flush()
os.fsync(f.fileno())
f.close()
if os.path.exists(filename):
os.unlink(filename)
os.rename(tmpname, filename)
dbg('Wrote %s bytes to %s', len(data), filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment