From 1d626fd41d383d32c9d43057e261d9f93e990c04 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Sat, 29 Jan 2022 12:05:50 +0100 Subject: [PATCH 1/2] Use pkgdir instead of pathof --- src/Pluto.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pluto.jl b/src/Pluto.jl index c1a209276b..c0bc81bad5 100644 --- a/src/Pluto.jl +++ b/src/Pluto.jl @@ -9,7 +9,7 @@ Have a look at the FAQ: https://github.com/fonsp/Pluto.jl/wiki """ module Pluto -project_relative_path(xs...) = normpath(joinpath(dirname(dirname(pathof(Pluto))), xs...)) +project_relative_path(xs...) = normpath(joinpath(pkgdir(Pluto)), xs...)) import Pkg From ccb45d48a598ffb4c0811c6b772225fe0e5e2b67 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Sat, 29 Jan 2022 12:07:01 +0100 Subject: [PATCH 2/2] Remove extra bracket --- src/Pluto.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pluto.jl b/src/Pluto.jl index c0bc81bad5..a4b26f1dad 100644 --- a/src/Pluto.jl +++ b/src/Pluto.jl @@ -9,7 +9,7 @@ Have a look at the FAQ: https://github.com/fonsp/Pluto.jl/wiki """ module Pluto -project_relative_path(xs...) = normpath(joinpath(pkgdir(Pluto)), xs...)) +project_relative_path(xs...) = normpath(joinpath(pkgdir(Pluto), xs...)) import Pkg