From 4b8dfc04fdbc53407dd744ae60f4c1afa402a123 Mon Sep 17 00:00:00 2001 From: Sandrine Pataut Date: Wed, 8 Jan 2025 11:36:41 +0100 Subject: [PATCH] small fix using concatenation operator --- libmamba/src/api/configuration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmamba/src/api/configuration.cpp b/libmamba/src/api/configuration.cpp index c29bbbb4c5..bdb24d5e84 100644 --- a/libmamba/src/api/configuration.cpp +++ b/libmamba/src/api/configuration.cpp @@ -2049,13 +2049,13 @@ namespace mamba fs::u8path(util::user_home_dir()) / ".condarc", }; - std::array condarc_list = {"/.condarc", "/condarc", "/condarc.d"}; + std::array condarc_list = {".condarc", "condarc", "condarc.d"}; if (util::get_env("XDG_CONFIG_HOME")) { const std::string xgd_config_home = util::get_env("XDG_CONFIG_HOME").value(); for (const auto& path: condarc_list) { - conda_user.push_back(fs::u8path(xgd_config_home) + "/conda" + path); + conda_user.push_back(fs::u8path(xgd_config_home) / "conda" / path); } } if (util::get_env("CONDA_PREFIX")) @@ -2063,7 +2063,7 @@ namespace mamba const std::string conda_prefix = util::get_env("CONDA_PREFIX").value(); for (const auto& path: condarc_list) { - conda_user.push_back(fs::u8path(conda_prefix) + path); + conda_user.push_back(fs::u8path(conda_prefix) / path); } }