Skip to content

Commit

Permalink
Revert part of fbc30cd (#28206)
Browse files Browse the repository at this point in the history
don't load Pkg automatically in interactive use
  • Loading branch information
fredrikekre authored and StefanKarpinski committed Jul 23, 2018
1 parent 88a8c86 commit 10002fc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions base/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,6 @@ function run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_fil
@warn "Failed to import InteractiveUtils into module Main" exception=(ex, catch_backtrace())
end
end
try
let Pkg = require(PkgId(UUID(0x44cfe95a_1eb2_52ea_b672_e2afdf69b78f), "Pkg"))
Core.eval(Main, :(const Pkg = $Pkg))
Core.eval(Main, :(using .Pkg))
end
catch ex
@warn "Failed to import Pkg into module Main" exception=(ex, catch_backtrace())
end

if interactive && isassigned(REPL_MODULE_REF)
invokelatest(REPL_MODULE_REF[]) do REPL
Expand Down

0 comments on commit 10002fc

Please sign in to comment.