We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a76c1 commit 113bbc9Copy full SHA for 113bbc9
src/core.jl
@@ -1,12 +1,19 @@
1
using PyCall
2
import Conda
3
4
+const _getproperty = try
5
+ pyimport("sys").executable
6
+ getproperty
7
+catch
8
+ getindex
9
+end
10
+
11
julia_exepath() =
12
joinpath(VERSION < v"0.7.0-DEV.3073" ? JULIA_HOME : Base.Sys.BINDIR,
13
Base.julia_exename())
14
15
function _start_ipython(name; kwargs...)
- pyimport("ipython_jl")[name](;
16
+ _getproperty(pyimport("ipython_jl"), name)(;
17
eval_str = JuliaAPI.eval_str,
18
api = JuliaAPI,
19
kwargs...)
@@ -17,6 +24,6 @@ function start_ipython(; kwargs...)
24
end
25
26
function __init__()
20
- pushfirst!(PyVector(pyimport("sys")["path"]), @__DIR__)
27
+ pushfirst!(PyVector(_getproperty(pyimport("sys"), "path")), @__DIR__)
21
28
afterreplinit(init_repl)
22
29
0 commit comments