5.13.2-dev0
Version ...
current as pdf
coverage
stable
latest
mHM
The mesoscale Hydrological Model
Loading...
Searching...
No Matches
cli.py
Go to the documentation of this file.
1
"""!
2
Module to provide a script to execute mHM.
3
4
@copyright Copyright 2005-@today, the mHM Developers, Luis Samaniego, Sabine Attinger: All rights reserved.
5
mHM is released under the LGPLv3+ license @license_note
6
"""
7
8
import
os
9
import
subprocess
10
import
sys
11
12
13
def
mhm
():
# pragma: no cover
14
"""Execute mhm as a command line program."""
15
exe = os.path.join(os.path.dirname(__file__),
"mhm"
)
16
if
not
os.path.exists(exe):
17
raise
RuntimeError(
"mhm: python bindings were installed without driver."
)
18
raise
SystemExit(subprocess.call([exe] + sys.argv[1:]))
mhm.cli.mhm
mhm()
Execute mhm as a command line program.
Definition
cli.py:13
pybind
src
mhm
cli.py
Generated on Tue May 27 2025 10:10:16 for mHM by
1.11.0