mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Resolve path to be extra sure
This commit is contained in:
parent
1723fb73c4
commit
6831161bfa
|
@ -38,7 +38,7 @@ def project_assets(project_dir: Path) -> None:
|
||||||
msg.warn(f"No assets specified in {PROJECT_FILE}", exits=0)
|
msg.warn(f"No assets specified in {PROJECT_FILE}", exits=0)
|
||||||
msg.info(f"Fetching {len(assets)} asset(s)")
|
msg.info(f"Fetching {len(assets)} asset(s)")
|
||||||
for asset in assets:
|
for asset in assets:
|
||||||
dest = project_dir / asset["dest"]
|
dest = (project_dir / asset["dest"]).resolve()
|
||||||
checksum = asset.get("checksum")
|
checksum = asset.get("checksum")
|
||||||
if "git" in asset:
|
if "git" in asset:
|
||||||
if dest.exists():
|
if dest.exists():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user