diff --git a/src/Instrumentation/ExtraeLocalManager.jl b/src/Instrumentation/ExtraeLocalManager.jl index 60e7af3..596b590 100644 --- a/src/Instrumentation/ExtraeLocalManager.jl +++ b/src/Instrumentation/ExtraeLocalManager.jl @@ -19,6 +19,7 @@ function Distributed.launch(manager::ExtraeLocalManager, params::Dict, launched: bind_to = manager.restrict ? `127.0.0.1` : `$(LPROC.bind_addr)` cookie = cluster_cookie() + active_project = Base.active_project() hookline = """ using Distributed using Extrae @@ -29,7 +30,7 @@ function Distributed.launch(manager::ExtraeLocalManager, params::Dict, launched: # Bug: Instead of using julia_cmd(exename), I directly use exename because idk howto access Base.julia_cmd for i in 1:manager.np - cmd = `env EXTRAE_SKIP_AUTO_LIBRARY_INITIALIZE=1 $exename $exeflags --project=. --bind-to $bind_to -e "$hookline"` + cmd = `env EXTRAE_SKIP_AUTO_LIBRARY_INITIALIZE=1 $exename $exeflags --project=$active_project --bind-to $bind_to -e "$hookline"` io = open(detach(setenv(cmd, dir=dir)), "r+") # Cluster cookie is not passed through IO. Instead, we set it