# HG changeset patch # User Ludovic Chabant # Date 1560291099 25200 # Node ID fac4483867a5283074c2b19790cda52455fec65c # Parent aad9b5a0a809ff11c6c048a76e9b9ce4c211a459 less: Fix issues moving the map file on Windows. Again. diff -r aad9b5a0a809 -r fac4483867a5 piecrust/processing/less.py --- 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