Relative paths not working in newly initialized FMModel #532
Labels
priority: high
type: bug
Something isn't working
type: enhancement
Improvements to existing functionality
Describe the bug
When initializing an
FMModel
and providing input (network
,fixedweirfile
,extfile
, etc), one has to provide absolute paths of the files. When relative paths are used (the files are e.g. located in the folder where the mdu will also be saved), the files are not found. This might have to do with the mdu file not (yet) being saved, but even when doing that first, relative paths do not work.To Reproduce
Expected behavior
Being able to provide relative paths to the mdu keywords.
EDIT: It does work when setting
os.chdir(dir_output)
, but changing the working directory is not always desireable. It might get a bit messy when using a nested model tree.Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: