diff --git a/flopy/modflow/mfsfr2.py b/flopy/modflow/mfsfr2.py index c5035b9c48..26a7a9a24d 100644 --- a/flopy/modflow/mfsfr2.py +++ b/flopy/modflow/mfsfr2.py @@ -9,7 +9,7 @@ from numpy.lib import recfunctions from ..pakbase import Package -from ..utils import MfList, import_optional_dependency +from ..utils import MfList from ..utils.flopy_io import line_parse from ..utils.optionblock import OptionBlock from ..utils.recarray_utils import create_empty_recarray @@ -1175,7 +1175,7 @@ def assign_layers(self, adjust_botms=False, pad=1.0): ) header += "\n" - with open(logfile, "w") as log: + with open(os.path.join(self.parent.model_ws, logfile), "w") as log: log.write(header) a = np.array(l).transpose() for line in a: