Skip to content

Commit

Permalink
fix(MFPackage): fix mfsim.nam relative paths (#1252)
Browse files Browse the repository at this point in the history
* update MFPackage for t505_test.py
  • Loading branch information
jlarsen-usgs committed Oct 1, 2021
1 parent ccdb36a commit 658bf2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flopy/mf6/mfpackage.py
Expand Up @@ -1572,7 +1572,8 @@ def __init__(
)
# only store the file name. model relative path handled
# internally
filename = os.path.split(filename)[-1]
if model_or_sim.type.lower() == "model":
filename = os.path.split(filename)[-1]
self._filename = MFFileMgmt.string_to_file_path(filename)
self.path, self.structure = model_or_sim.register_package(
self, not loading_package, pname is None, filename is None
Expand Down

0 comments on commit 658bf2c

Please sign in to comment.