Skip to content

Commit

Permalink
Add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
dudarboh authored and andresailer committed Oct 15, 2024
1 parent 3447478 commit 6c11d77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DDCore/src/XML/DocumentHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ namespace {
}
int s_minPrintLevel = dd4hep::INFO;

std::string _clean_fname(const std::string& s) {
std::string const& temp = getEnviron(s);
std::string temp2 = undressed_file_name(temp.empty() ? s : temp);
std::string _clean_fname(const std::string& filepath) {
// This function seems to resolve environment variables inside the filepath string and return resolved string
std::string const& temp = getEnviron(filepath);
std::string temp2 = undressed_file_name( temp.empty() ? filepath : temp );
if ( strncmp(temp2.c_str(),"file:",5)==0 ) return temp2.substr(5);
return temp2;
}
Expand Down

0 comments on commit 6c11d77

Please sign in to comment.