From 5c47afdfcb7826e5a23830d81c67223e677a30aa Mon Sep 17 00:00:00 2001 From: James Clark Date: Mon, 17 Sep 2018 23:58:10 +0100 Subject: [PATCH] Initialise DEPOT_PATH and LOAD_PATH before stdio If stdin is a TCP socket, init_stdio tries to include the Sockets module, but this is in stdlib and it fails to find the package if the LOAD_PATH is not initialised. julialang/julia#29234 --- base/sysimg.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index dd605b06417f7..93dd8d55f43f0 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -466,12 +466,12 @@ function __init__() end # for the few uses of Libc.rand in Base: Libc.srand() - # Base library init - reinit_stdio() - Multimedia.reinit_displays() # since Multimedia.displays uses stdout as fallback # initialize loading init_depot_path() init_load_path() + # Base library init + reinit_stdio() + Multimedia.reinit_displays() # since Multimedia.displays uses stdout as fallback nothing end