Mercurial > piecrust2
changeset 1155:fac4483867a5
less: Fix issues moving the map file on Windows. Again.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 11 Jun 2019 15:11:39 -0700 |
parents | aad9b5a0a809 |
children | 4ea64255eadf |
files | piecrust/processing/less.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/processing/less.py Sat Jan 19 17:41:56 2019 -0800 +++ b/piecrust/processing/less.py Tue Jun 11 15:11:39 2019 -0700 @@ -2,6 +2,7 @@ import os.path import sys import json +import shutil import hashlib import logging import platform @@ -92,7 +93,7 @@ logger.debug("Moving map file: %s -> %s" % (temp_map_path, map_path)) if os.path.exists(map_path): os.remove(map_path) - os.rename(temp_map_path, map_path) + shutil.move(temp_map_path, map_path) return True