From 1fd4626fbe2b976d1bd3af47275a7863f376ec2c Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Thu, 2 Sep 2021 11:26:38 -0400 Subject: [PATCH 1/2] Set default exeflags to start procs using active project --- stdlib/Distributed/src/cluster.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Distributed/src/cluster.jl b/stdlib/Distributed/src/cluster.jl index ebe4cac0f3bbe..8f62dc7f0ceaf 100644 --- a/stdlib/Distributed/src/cluster.jl +++ b/stdlib/Distributed/src/cluster.jl @@ -527,7 +527,7 @@ default_addprocs_params() = Dict{Symbol,Any}( :topology => :all_to_all, :dir => pwd(), :exename => joinpath(Sys.BINDIR::String, julia_exename()), - :exeflags => ``, + :exeflags => "--project=$(Base.active_project())", :enable_threaded_blas => false, :lazy => true) From 72e6cbaf681eef0a8e3c3c16901fe3b28d7f636c Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Thu, 21 Oct 2021 16:38:18 -0400 Subject: [PATCH 2/2] Default exeflags should be a command, not a string --- stdlib/Distributed/src/cluster.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Distributed/src/cluster.jl b/stdlib/Distributed/src/cluster.jl index 8f62dc7f0ceaf..5868829fcae70 100644 --- a/stdlib/Distributed/src/cluster.jl +++ b/stdlib/Distributed/src/cluster.jl @@ -527,7 +527,7 @@ default_addprocs_params() = Dict{Symbol,Any}( :topology => :all_to_all, :dir => pwd(), :exename => joinpath(Sys.BINDIR::String, julia_exename()), - :exeflags => "--project=$(Base.active_project())", + :exeflags => `--project=$(Base.active_project())`, :enable_threaded_blas => false, :lazy => true)