Skip to content

Commit

Permalink
use dirname instead of Pkg.dir
Browse files Browse the repository at this point in the history
to make it compatible to loading via `LOADPATH`
  • Loading branch information
tanmaykm committed Nov 13, 2017
1 parent 7d9bb22 commit abefaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LMDB.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module LMDB
import Base: drop
end

depsfile = Pkg.dir("LMDB","deps","deps.jl")
depsfile = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
if isfile(depsfile)
include(depsfile)
else
Expand Down

0 comments on commit abefaaf

Please sign in to comment.