Skip to content

Commit

Permalink
typecast to Path to check suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
martclanor committed Dec 27, 2024
1 parent 9d952a9 commit ebc08f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/mbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _resolve(exe_name):
return exe

# try removing .exe suffix
if exe_name.lower().endswith(".exe"):
if Path(exe_name).suffix == ".exe":
return _resolve(exe_name[:-4])

exe_path = _resolve(exe_name)
Expand Down

0 comments on commit ebc08f4

Please sign in to comment.