Skip to content

Commit

Permalink
Fix potential Python 3.8 compat issue with paths
Browse files Browse the repository at this point in the history
  • Loading branch information
asumagic committed Mar 28, 2024
1 parent 5b2fb61 commit 17d5283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speechbrain/utils/fetching.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def link_with_strategy(
logging.info("Fetch: Local file found, copying '%s' -> '%s'", src, dst)

dst.unlink(missing_ok=True) # remove link or delete file
shutil.copy(src, dst)
shutil.copy(str(src), str(dst))
return dst

if local_strategy == LocalStrategy.NO_LINK:
Expand Down

0 comments on commit 17d5283

Please sign in to comment.