From 80da14c1fbefcfd92329c32a445941fe84567c27 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 23 Aug 2018 21:01:56 -0700 Subject: [PATCH] Use pathof(PlotReferenceImages) instead of Pkg.dir --- test/imgcomp.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/imgcomp.jl b/test/imgcomp.jl index b580b1a7..0bec9b52 100644 --- a/test/imgcomp.jl +++ b/test/imgcomp.jl @@ -15,7 +15,7 @@ using VisualRegressionTests using Plots # using StatPlots -using Pkg +using PlotReferenceImages using Random using Test @@ -40,7 +40,7 @@ function image_comparison_tests(pkg::Symbol, idx::Int; debug = false, popup = is # reference image directory setup # 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" # firgure out version info