Skip to content
Snippets Groups Projects
Commit ec93c5e3 authored by Lin, Jiao's avatar Lin, Jiao
Browse files

Refs #21068. use Poco::Path for finding Facilities.xml

parent 7bfe3225
No related merge requests found
...@@ -1788,8 +1788,9 @@ std::string ConfigServiceImpl::getFacilityFilename(const std::string &fName) { ...@@ -1788,8 +1788,9 @@ std::string ConfigServiceImpl::getFacilityFilename(const std::string &fName) {
// look through all the possible files // look through all the possible files
for (; instrDir != directoryNames.end(); ++instrDir) { for (; instrDir != directoryNames.end(); ++instrDir) {
std::string filename = (*instrDir) + "Facilities.xml"; Poco::Path p(*instrDir);
p.append("Facilities.xml");
std::string filename = p.toString();
Poco::File fileObj(filename); Poco::File fileObj(filename);
// stop when you find the first one // stop when you find the first one
if (fileObj.exists()) if (fileObj.exists())
......
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