mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
use shutil.move for all platforms in case of different filesystems
This commit is contained in:
parent
17652e764f
commit
be46ddef9a
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user