From 7feb309e06048c8a6bac67d2ed2017dd9f89c9df Mon Sep 17 00:00:00 2001 From: luopengting Date: Sun, 9 May 2021 08:33:16 +0800 Subject: [PATCH] add '/' when the MS_RDR_PATH does not end with '/' --- mindspore/ccsrc/debug/env_config_parser.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mindspore/ccsrc/debug/env_config_parser.cc b/mindspore/ccsrc/debug/env_config_parser.cc index a938477414..5d094cafc6 100644 --- a/mindspore/ccsrc/debug/env_config_parser.cc +++ b/mindspore/ccsrc/debug/env_config_parser.cc @@ -104,6 +104,9 @@ void EnvConfigParser::ParseFromEnv() { has_rdr_setting_ = true; std::string path = path_env.value(); if (!path.empty()) { + if (path.back() != '/') { + path += '/'; + } rdr_path_ = path; } }