Use pathof(PlotReferenceImages) instead of Pkg.dir

This commit is contained in:
Takafumi Arakaki 2018-08-23 21:01:56 -07:00
parent 374580a3d6
commit 80da14c1fb

View File

@ -15,7 +15,7 @@ using VisualRegressionTests
using Plots using Plots
# using StatPlots # using StatPlots
using Pkg using PlotReferenceImages
using Random using Random
using Test using Test
@ -40,7 +40,7 @@ function image_comparison_tests(pkg::Symbol, idx::Int; debug = false, popup = is
# reference image directory setup # reference image directory setup
# refdir = joinpath(Pkg.dir("ExamplePlots"), "test", "refimg", string(pkg)) # refdir = joinpath(Pkg.dir("ExamplePlots"), "test", "refimg", string(pkg))
refdir = Pkg.dir("PlotReferenceImages", "Plots", string(pkg)) refdir = joinpath(dirname(pathof(PlotReferenceImages)), "..", "Plots", string(pkg))
fn = "ref$idx.png" fn = "ref$idx.png"
# firgure out version info # firgure out version info