Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Use @__DIR__ instead of dirname(@__FILE__) (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
musm authored and ararslan committed Oct 29, 2018
1 parent d5b94a3 commit 53dbc7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/LibFoo.jl/src/LibFoo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module LibFoo
using Libdl

# Load in `deps.jl`, complaining if it does not exist
const depsjl_path = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
const depsjl_path = joinpath(@__DIR__, "..", "deps", "deps.jl")
if !isfile(depsjl_path)
error("LibFoo not installed properly, run Pkg.build(\"LibFoo\"), restart Julia and try again")
end
Expand Down

0 comments on commit 53dbc7c

Please sign in to comment.