Skip to content

Commit

Permalink
Merge pull request #65 from SeisSol/davschneller/fix-64
Browse files Browse the repository at this point in the history
Fix #64
  • Loading branch information
davschneller authored Oct 1, 2024
2 parents ca1a2d8 + 69067f2 commit 391698a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/YAMLParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,13 @@ Component* YAMLParser::parse(std::string const& fileName) {
m_currentFileName = fs::canonical(loadFileName);
}
else if (fs::exists(nextPath)) {
m_currentFileName = fs::canonical(nextPath);
}
else {
m_currentFileName = nextPath;
}
m_fileNames.insert(m_currentFileName);
YAML::Node config = YAML::LoadFile(loadFileName);
YAML::Node config = YAML::LoadFile(m_currentFileName);
root = parse(config, m_in);
m_currentFileName = lastFileName;
} catch (YAML::Exception const& e) {
Expand Down

0 comments on commit 391698a

Please sign in to comment.