Skip to content

Commit

Permalink
use isfile() in load instead of is_file_readable
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Nov 16, 2012
1 parent 3efaba0 commit 93e8efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ end

function find_in_path(name::String)
name[1] == '/' && return realpath(name)
is_file_readable(name) && return realpath(name)
isfile(name) && return realpath(name)
base = name
if ends_with(name,".jl")
base = match(r"^(.*)\.jl$",name).captures[1]
Expand Down

0 comments on commit 93e8efc

Please sign in to comment.