Use @__DIR__ instead of Pkg.dir

this allows installing and loading the package from elsewhere
This commit is contained in:
Tony Kelman
2017-08-05 04:17:44 -04:00
committed by Jukka Aho
parent 3cc43fafd2
commit dcd24e8e01
21 changed files with 30 additions and 30 deletions
@@ -62,7 +62,7 @@ using JuliaFEM.Testing
#end
# function solve_rod_model_elasticity(eltype)
# fn = Pkg.dir("JuliaFEM") * "/test/testdata/rod_short.med"
# fn = @__DIR__() * "/testdata/rod_short.med"
# mesh = aster_read_mesh(fn, eltype)
# element_sets = join(keys(mesh.element_sets), ", ")
# info("element sets: $element_sets")