Skip to content
Snippets Groups Projects
Commit 6c11d775 authored by Bohdan Dudar's avatar Bohdan Dudar Committed by Andre Sailer
Browse files

Add explanation

parent 34474781
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,10 @@ namespace { ...@@ -40,9 +40,10 @@ namespace {
} }
int s_minPrintLevel = dd4hep::INFO; int s_minPrintLevel = dd4hep::INFO;
std::string _clean_fname(const std::string& s) { std::string _clean_fname(const std::string& filepath) {
std::string const& temp = getEnviron(s); // This function seems to resolve environment variables inside the filepath string and return resolved string
std::string temp2 = undressed_file_name(temp.empty() ? s : temp); 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); if ( strncmp(temp2.c_str(),"file:",5)==0 ) return temp2.substr(5);
return temp2; return temp2;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment