Skip to content

Commit 47f4a06

Browse files
committed
Set --startup-file=no in juliainfo
Currently, startup file is not loaded in the main PyJulia session. Including the startup file has some potential problem. For example, if something is printed in the startup file then `juliainfo` would break. So it seems to be that the safe default is to avoid loading the startup file (though it makes sense to add an option to load it in the future).
1 parent 980858b commit 47f4a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

julia/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def juliainfo(runtime='julia', **popen_kwargs):
281281
popen_kwargs.setdefault("env", _enviorn)
282282

283283
proc = subprocess.Popen(
284-
[runtime, "-e",
284+
[runtime, "--startup-file=no", "-e",
285285
"""
286286
println(VERSION < v"0.7.0-DEV.3073" ? JULIA_HOME : Base.Sys.BINDIR)
287287
if VERSION >= v"0.7.0-DEV.3630"

0 commit comments

Comments
 (0)