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:
@ -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())
|
||||
|
||||
Reference in New Issue
Block a user