From 9a127cf3aa4fda3478aeb5cae56d4b20096172f4 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Tue, 9 May 2017 12:31:15 -0700 Subject: [PATCH] asdf --- base/loading.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 48a5b6a8ab71fa..922869a3b44958 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -519,7 +519,11 @@ end function source_dir() isinteractive() && return pwd() p = source_path(nothing) - p === nothing ? p : dirname(p) + if p === nothing + isinteractive() ? pwd() : p + else + dirname(p) + end end """