dictionary: Read dictionaries referred to within keywords relative to the directory of the current dictionary

Special handling for absolute paths will be added.
This commit is contained in:
Henry Weller
2019-07-11 00:22:17 +01:00
parent cd910ed6b8
commit c4a61bb8ac

View File

@ -349,7 +349,10 @@ const Foam::entry* Foam::dictionary::lookupScopedSubEntryPtr
keyword.size() - emarkPos - 1
);
autoPtr<ISstream> ifsPtr(fileHandler().NewIFstream(fName));
autoPtr<ISstream> ifsPtr
(
fileHandler().NewIFstream(topDict().name().path()/fName)
);
ISstream& ifs = ifsPtr();
if (!ifs || !ifs.good())