read windows cross section libaries

This commit is contained in:
jingang 2019-06-05 16:22:23 -04:00
parent 12b5f337d4
commit 97b8b6bef7

View file

@ -402,6 +402,10 @@ void read_ce_cross_sections_xml()
// If no directory is listed in cross_sections.xml, by default select the
// directory in which the cross_sections.xml file resides
auto pos = filename.rfind("/");
if (pos == std::string::npos) {
// no '/' found, probably a Windows directory
pos = filename.rfind("\\");
}
directory = filename.substr(0, pos);
}