Source code for CIME.XML.env_run

"""
Interface to the env_run.xml file.  This class inherits from EnvBase
"""
from CIME.XML.standard_module_setup import *

from CIME.XML.env_base import EnvBase

logger = logging.getLogger(__name__)

[docs]class EnvRun(EnvBase): def __init__(self, case_root=None, infile="env_run.xml", components=None, read_only=False): """ initialize an object interface to file env_run.xml in the case directory """ self._components = components schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_entry_id.xsd") EnvBase.__init__(self, case_root, infile, schema=schema, read_only=read_only)