Skip to content

Commit

Permalink
Fixed relative path include on remote machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Gollor committed May 13, 2017
1 parent 9ac9071 commit d86b37c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ const _require_dependencies = Any[] # a list of (path, mtime) tuples that are th
const _track_dependencies = Ref(false) # set this to true to track the list of file dependencies
function _include_dependency(_path::AbstractString)
prev = source_path(nothing)
if myid() != 1 && prev === nothing
prev = remotecall_fetch(abspath, 1, ".")
end
path = (prev === nothing) ? abspath(_path) : joinpath(dirname(prev), _path)
if myid() == 1 && _track_dependencies[]
apath = abspath(path)
Expand Down Expand Up @@ -817,3 +820,4 @@ function stale_cachefile(modpath::String, cachefile::String)
close(io)
end
end

0 comments on commit d86b37c

Please sign in to comment.