You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For each key-value mapping in `params[:env]`, we respect that mapping and we pass it
83
-
# to the workers.
84
-
env2[name] = value
85
-
86
-
# If the user did specify `JULIA_{PROJECT,LOAD_PATH,DEPOT_PATH}` in `params[:env]`, then
87
-
# we respect that value, and we pass it to the workers.
88
-
if name =="JULIA_PROJECT"
89
-
user_did_specify_JULIA_PROJECT =true
90
-
@debug"The user did specify a value for JULIA_PROJECT in the `env` kwarg to `addprocs()`; that value will be passed to the workers" env2[JULIA_PROJECT]
91
-
end
92
-
if name =="JULIA_LOAD_PATH"
93
-
user_did_specify_JULIA_LOAD_PATH =true
94
-
@debug"The user did specify a value for JULIA_LOAD_PATH in the `env` kwarg to `addprocs()`; that value will be passed to the workers" env2[JULIA_LOAD_PATH]
95
-
end
96
-
if name =="JULIA_DEPOT_PATH"
97
-
user_did_specify_JULIA_DEPOT_PATH =true
98
-
@debug"The user did specify a value for JULIA_DEPOT_PATH in the `env` kwarg to `addprocs()`; that value will be passed to the workers" env2[JULIA_DEPOT_PATH]
76
+
# For each key-value mapping in `params[:env]`, we respect that mapping and we pass it
77
+
# to the workers.
78
+
env2 =copy(params_env)
79
+
80
+
for name in ["JULIA_PROJECT", "JULIA_LOAD_PATH", "JULIA_DEPOT_PATH"]
81
+
ifhaskey(env2, name)
82
+
@debug"The user did specify $(name)=$(env2[name]) in the `env` kwarg to `addprocs()`. That value will be passed to the workers."
99
83
end
100
84
end
101
85
@@ -108,31 +92,31 @@ function _new_environment_additions(params_env::Dict{String, String})
108
92
# variable but DOES start Julia with either `julia --project` or `julia --project=something`.
0 commit comments