use shutil.move for all platforms in case of different filesystems

This commit is contained in:
Dingyuan Wang 2015-06-26 21:52:53 +08:00
parent 17652e764f
commit be46ddef9a

View File

@ -15,10 +15,7 @@ from hashlib import md5
from ._compat import *
from . import finalseg
if os.name == 'nt':
from shutil import move as _replace_file
else:
_replace_file = os.rename
from shutil import move as _replace_file
_get_module_path = lambda path: os.path.normpath(os.path.join(os.getcwd(),
os.path.dirname(__file__), path))