From 15ee0a4a9b398b86001c7a2542e8e98f9dedba70 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 7 Aug 2026 18:15:25 +0200 Subject: Environment cleanup. Use this in future sim runs --- modules/core/c++/environment.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/core/c++/environment.hpp') diff --git a/modules/core/c++/environment.hpp b/modules/core/c++/environment.hpp index ed9cd40..51092d5 100644 --- a/modules/core/c++/environment.hpp +++ b/modules/core/c++/environment.hpp @@ -22,7 +22,7 @@ saw::error_or init_lbm_env(const saw::data& args){ namespace fs = std::filesystem; auto& args_n = args.template get<"args">(); - auto& name = args_n.template get<"name">(); + auto& arg_name = args_n.template get<"name">(); const char* home_dir = std::getenv("HOME"); if(not home_dir){ @@ -50,7 +50,8 @@ saw::error_or init_lbm_env(const saw::data& args){ } { - env.name_dir = env.data_dir / name.view(); + env.name = arg_name.stl_view(); + env.name_dir = env.data_dir / arg_name.stl_view(); } return env; -- cgit v1.2.3