mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 04:10:20 +03:00
Remove unnecessary string conversion of paths
This commit is contained in:
parent
e92f4de49e
commit
347727237c
|
@ -415,7 +415,7 @@ def git_checkout(
|
|||
err = f"'{subpath}' is a path outside of the cloned repository."
|
||||
msg.fail(err, repo, exits=1)
|
||||
if os.path.isdir(source_path):
|
||||
shutil.copytree(str(source_path), str(dest))
|
||||
shutil.copytree(source_path, dest)
|
||||
else:
|
||||
shutil.copyfile(source_path, dest)
|
||||
except FileNotFoundError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user