diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-07 18:15:25 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-07 18:15:25 +0200 |
| commit | 15ee0a4a9b398b86001c7a2542e8e98f9dedba70 (patch) | |
| tree | 60636c39dad819388e6fd814a2a9c2efac5dded1 /modules/core/c++/environment.hpp | |
| parent | cf3ee2ab8de44160c24da7850955021142f41da8 (diff) | |
| download | libs-lbm-15ee0a4a9b398b86001c7a2542e8e98f9dedba70.tar.gz | |
Environment cleanup. Use this in future sim runsdev
Diffstat (limited to 'modules/core/c++/environment.hpp')
| -rw-r--r-- | modules/core/c++/environment.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<environment> init_lbm_env(const saw::data<ArgSch>& 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<environment> init_lbm_env(const saw::data<ArgSch>& 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; |
