Browse Source

add '/' when the MS_RDR_PATH does not end with '/'

pull/16133/head
luopengting 4 years ago
parent
commit
7feb309e06
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mindspore/ccsrc/debug/env_config_parser.cc

+ 3
- 0
mindspore/ccsrc/debug/env_config_parser.cc View File

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


Loading…
Cancel
Save