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
+1 -1
View File
@@ -7,7 +7,7 @@ using JuliaFEM.Postprocess
using JuliaFEM.Testing
@testset "zero eigenmode model" begin
meshfile = Pkg.dir("JuliaFEM") * "/test/testdata/primitives.med"
meshfile = @__DIR__() * "/testdata/primitives.med"
mesh = aster_read_mesh(meshfile, "TETRA_TET10_1")
model = Problem(mesh, Elasticity, "TET", 3)
update!(model.elements, "youngs modulus", 10.0)