diff --git a/deps/build.jl b/deps/build.jl index 81ce8cc6..4769e8e5 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -25,8 +25,11 @@ function prog_version(prog) return v"0.0" end end + +prefsfile = joinpath(first(DEPOT_PATH), "prefs", "IJulia") +mkpath(dirname(prefsfile)) -global jupyter = get(ENV, "JUPYTER", isfile("JUPYTER") ? readchomp("JUPYTER") : Compat.Sys.isunix() && !Compat.Sys.isapple() ? "jupyter" : "") +global jupyter = get(ENV, "JUPYTER", isfile(prefsfile) ? readchomp(prefsfile) : Compat.Sys.isunix() && !Compat.Sys.isapple() ? "jupyter" : "") if isempty(jupyter) jupyter_vers = nothing else @@ -117,7 +120,7 @@ deps = """ if !isfile("deps.jl") || read("deps.jl", String) != deps write("deps.jl", deps) end -write("JUPYTER", jupyter) +write(prefsfile, jupyter) ####################################################################### catch