Skip to content

Commit

Permalink
Merge branch 'master' of github.com:JuliaLang/julia
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 30, 2015
2 parents 83f92ef + d2ec61d commit 322d4c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
function find_in_path(name::AbstractString, wd = pwd())
isabspath(name) && return name
if wd === nothing; wd = pwd(); end
isfile(joinpath(wd,name)) && return joinpath(wd,name)
base = name
if endswith(name,".jl")
base = name[1:end-3]
else
name = string(base,".jl")
isfile(joinpath(wd,name)) && return joinpath(wd,name)
end
isfile(joinpath(wd,name)) && return joinpath(wd,name)
for prefix in [Pkg.dir(); LOAD_PATH]
path = joinpath(prefix, name)
isfile(path) && return abspath(path)
Expand Down

0 comments on commit 322d4c8

Please sign in to comment.