Description
I'm getting a lot of this message (shown below) in my script, every time I call nlmod.util.get_exe_path()
. When I pass a version_tag
, it still logs messages. Maybe DEBUG level logging is sufficient, or maybe this message isn't very interesting?
INFO:nlmod.util.get_flopy_bin_directories:The version of the executables will not be checked, because the `version_tag` is not passed to `get_flopy_bin_directories()`.
Also a question, I just want to use the modflow binaries downloaded using flopy, how do I get nlmod to find that file? The binaries are available on my path so typing mf6
in my terminal gets me the right mf6 version. From my environment (where nlmod
does not have any binaries downloaded), nlmod.util.get_exe_path()
is now preferring its own binary directory in different environments instead of the flopy directory that's included in my PATH environment variable. I thought maybe this had to do with editable installs in different environments, but it also found the binaries in an environment where I installed nlmod
with pip install .
.
Chances are fairly large that I've just messed up my environments too much, but I wanted to check here whether anyone else has observed similar behavior?
Steps to maybe reproduce:
- Download flopy binaries using
get-modflow :flopy
- Add flopy bin directory to PATH
- Install nlmod in two Python environments
- Download binaries in one Python environment
- Activate the other Python environment.
- Start python and import nlmod to run
nlmod.util.get_exe_path("mf6")
. - Which mf6 is returned?