tUse cross-version compatible OS checks - Granular.jl - Julia package for granu… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ba27e7cf2151993e2d59aa43b13401a7aea19e5d | |
parent da0c7ed57ed9892a46635cc656cd2f6ad2af4c74 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 2 Jan 2018 13:55:24 -0500 | |
Use cross-version compatible OS checks | |
Diffstat: | |
M src/io.jl | 5 +++-- | |
1 file changed, 3 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/io.jl b/src/io.jl | |
t@@ -5,15 +5,16 @@ if typeof(Pkg.installed("JLD")) == VersionNumber | |
import JLD | |
hasJLD = true | |
end | |
+import Compat | |
using Compat.DelimitedFiles | |
using Compat.Dates | |
# load Homebrew/WinRPM for gnuplot and imagemagick | |
-if is_apple() | |
+if Compat.Sys.isapple() | |
using Homebrew | |
end | |
-if is_windows() | |
+if Compat.Sys.iswindows() | |
using WinRPM | |
end | |