From 107bb4e6ac426cb1b9cc640d51cb4287db732a5f Mon Sep 17 00:00:00 2001 From: Marisol Chavez Estrada Date: Tue, 1 Oct 2024 20:29:44 -0400 Subject: [PATCH] Added setenv in the constructor for MarleyCrossSection.cxx --- projects/interactions/private/MarleyCrossSection.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/interactions/private/MarleyCrossSection.cxx b/projects/interactions/private/MarleyCrossSection.cxx index f4c550b9..569f28e1 100644 --- a/projects/interactions/private/MarleyCrossSection.cxx +++ b/projects/interactions/private/MarleyCrossSection.cxx @@ -12,7 +12,9 @@ namespace siren { namespace interactions { //MarleyCrossSection::MarleyCrossSection() {} -MarleyCrossSection::MarleyCrossSection(const std::string& marley_config) { +MarleyCrossSection::MarleyCrossSection(std::string marley_config, std::string search_path) { + setenv("MARLEY", "", 0); + setenv("MARLEY_SEARCH_PATH", search_path.c_str(), 0); InitializeMarley(marley_config); }