Skip to content

Commit

Permalink
change JULIA_HOME to Sys.BINDIR, fix #658
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 7, 2018
1 parent 5715e95 commit 87f5c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/kspec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function installkernel(name::AbstractString, julia_options::AbstractString...;
juliakspec = joinpath(tempdir(), spec_name)
try
binary_name = Compat.Sys.iswindows() ? "julia.exe" : "julia"
kernelcmd_array = String[joinpath(JULIA_HOME,"$binary_name"), "-i",
kernelcmd_array = String[joinpath(Compat.Sys.BINDIR,"$binary_name"), "-i",
"--startup-file=yes", "--color=yes"]
append!(kernelcmd_array, julia_options)
ijulia_dir = get(ENV, "IJULIA_DIR", dirname(@__DIR__)) # support non-Pkg IJulia installs
Expand Down
2 changes: 1 addition & 1 deletion src/kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import IJulia

# workaround #60:
if IJulia.Compat.Sys.isapple()
ENV["PATH"] = JULIA_HOME*":"*ENV["PATH"]
ENV["PATH"] = Compat.Sys.BINDIR*":"*ENV["PATH"]
end

IJulia.init(ARGS)
Expand Down

0 comments on commit 87f5c94

Please sign in to comment.