Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
fix download & use pkg independent path
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Feb 13, 2019
1 parent 0eb9ab1 commit 969f5da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/testruns.jl
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 969f5da

Please sign in to comment.