File move fix for windows
This commit is contained in:
parent
c119ef4273
commit
50b1eae380
|
@ -288,7 +288,7 @@ class Identity:
|
||||||
ratchet_file = open(outpath, "wb")
|
ratchet_file = open(outpath, "wb")
|
||||||
ratchet_file.write(umsgpack.packb(ratchet_data))
|
ratchet_file.write(umsgpack.packb(ratchet_data))
|
||||||
ratchet_file.close()
|
ratchet_file.close()
|
||||||
os.rename(outpath, finalpath)
|
os.replace(outpath, finalpath)
|
||||||
|
|
||||||
|
|
||||||
threading.Thread(target=persist_job, daemon=True).start()
|
threading.Thread(target=persist_job, daemon=True).start()
|
||||||
|
|
Loading…
Reference in New Issue