Skip to content

Commit 7a43e8b

Browse files
committed
Use pkgdir
1 parent e556219 commit 7a43e8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/disk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# [documentation](https://MikaelSlevinsky.github.io/FastTransforms).
2121

2222
using FastTransforms, LinearAlgebra, Plots
23-
const GENFIGS = joinpath(dirname(dirname(pathof(FastTransforms))), "docs/src/generated")
23+
const GENFIGS = joinpath(pkgdir(FastTransforms), "docs/src/generated")
2424
!isdir(GENFIGS) && mkdir(GENFIGS)
2525
plotlyjs()
2626

examples/sphere.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function threshold!(A::AbstractArray, ϵ)
3333
end
3434

3535
using FastTransforms, LinearAlgebra, Plots
36-
const GENFIGS = joinpath(dirname(dirname(pathof(FastTransforms))), "docs/src/generated")
36+
const GENFIGS = joinpath(pkgdir(FastTransforms), "docs/src/generated")
3737
!isdir(GENFIGS) && mkdir(GENFIGS)
3838
plotlyjs()
3939

examples/triangle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# [documentation](https://MikaelSlevinsky.github.io/FastTransforms).
2525

2626
using FastTransforms, LinearAlgebra, Plots
27-
const GENFIGS = joinpath(dirname(dirname(pathof(FastTransforms))), "docs/src/generated")
27+
const GENFIGS = joinpath(pkgdir(FastTransforms), "docs/src/generated")
2828
!isdir(GENFIGS) && mkdir(GENFIGS)
2929
plotlyjs()
3030

0 commit comments

Comments
 (0)