commit 991d22e7dd06c0103c2c0f9defe17ba73febf038 parent 7dec6050d81c68a29ace3658afbfbfdb0d6aeda5 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 6 Jun 2018 13:11:21 -0400 Update JLD check for Julia 0.7 Diffstat:
M | src/io.jl | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/io.jl b/src/io.jl @@ -3,7 +3,12 @@ import Compat using Compat.LinearAlgebra hasJLD = false -if typeof(Compat.Pkg.installed("JLD")) == VersionNumber +if VERSION < v"0.7.0-alpha" + if typeof(Compat.Pkg.installed("JLD")) == VersionNumber + import JLD + hasJLD = true + end +elseif haskey(Pkg.installed(), "JLD") import JLD hasJLD = true end