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; } }