From 969f5daaf9d184ff7329ecb47e33d8b959758029 Mon Sep 17 00:00:00 2001 From: SimonDanisch Date: Wed, 13 Feb 2019 12:52:14 +0100 Subject: [PATCH] fix download & use pkg independent path --- src/testruns.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testruns.jl b/src/testruns.jl index 65c164d4..0ab53ca6 100644 --- a/src/testruns.jl +++ b/src/testruns.jl @@ -1,8 +1,11 @@ +const makiegallery_dir = abspath(first(Base.DEPOT_PATH), "makiegallery") + """ Downloads the reference images from ReferenceImages for a specific version """ function download_reference(version = v"0.1.1") - download_dir = joinpath(@__DIR__, "..", "test", "testimages") + download_dir = joinpath(makiegallery_dir, "testimages") + isdir(download_dir) || mkpath(download_dir) tarfile = joinpath(download_dir, "gallery.zip") url = "https://github.com/SimonDanisch/ReferenceImages/archive/v$(version).tar.gz" refpath = joinpath(download_dir, "ReferenceImages-$(version)", "gallery")