33 lines
897 B
Python
33 lines
897 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
This is a just top-level skeleton script that calls
|
|
plumber2_usermods.py.
|
|
The original code (plumber2_usermods.py) is located under
|
|
python/ctsm/site_and_regional folder.
|
|
|
|
For full instructions on how to run the code and different options,
|
|
please check python/ctsm/site_and_regional/plumber2_usermods.py file.
|
|
|
|
This script is a simple wrapper for plumber sites that creates usermod_dirs
|
|
for each site.
|
|
|
|
----------------------------------------------------------------
|
|
Instructions for running using conda python environments:
|
|
../../py_env_create
|
|
conda activate ctsm_pylib
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
# -- add python/ctsm to path
|
|
_CTSM_PYTHON = os.path.join(
|
|
os.path.dirname(os.path.realpath(__file__)), os.pardir, os.pardir, "python"
|
|
)
|
|
sys.path.insert(1, _CTSM_PYTHON)
|
|
|
|
from ctsm.site_and_regional.plumber2_usermods import main
|
|
|
|
if __name__ == "__main__":
|
|
main()
|