This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import platform | |
import tempfile | |
import ntpath | |
import filelock # https://github.com/dmfrey/FileLock | |
# It's interesting to see what's different between Windows and Linux. | |
# On Windows, you can't rename to an existing file, and you can't | |
# use os.fdatasync(). | |
# Also see: http://blog.gocept.com/2013/07/15/reliable-file-updates-with-python/ |
NewerOlder