From 0f2116f43b5363630b2a55e8a05ea58305124269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <tmueller@nvidia.com> Date: Wed, 18 Jan 2023 10:40:21 +0100 Subject: [PATCH] Allow setting network configs when no mode is set --- src/testbed.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testbed.cu b/src/testbed.cu index 134e517..dac7138 100644 --- a/src/testbed.cu +++ b/src/testbed.cu @@ -247,7 +247,7 @@ json Testbed::load_network_config(const fs::path& network_config_path) { void Testbed::reload_network_from_file(const std::string& network_config_path_string) { if (!network_config_path_string.empty()) { fs::path candidate = find_network_config(network_config_path_string); - if (candidate.exists()) { + if (candidate.exists() || !m_network_config_path.exists()) { // Store the path _argument_ in the member variable. E.g. for the base config, // it'll store `base.json`, even though the loaded config will be // config/<mode>/base.json. This has the benefit of switching to the -- GitLab