Skip to content

Commit

Permalink
account for path separator when inserting @depot tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Aug 2, 2024
1 parent 1dffd77 commit e8466e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3131,7 +3131,7 @@ function replace_depot_path(path::AbstractString)
depot = dirname(depot)
end

if startswith(path, depot)
if startswith(path, string(depot, Filesystem.pathsep())) || path == depot
path = replace(path, depot => "@depot"; count=1)
break
end
Expand Down

0 comments on commit e8466e9

Please sign in to comment.