diff --git a/CIME/ParamGen/paramgen.py b/CIME/ParamGen/paramgen.py index 4fa6221f06e..188b954bd31 100644 --- a/CIME/ParamGen/paramgen.py +++ b/CIME/ParamGen/paramgen.py @@ -4,6 +4,7 @@ from copy import deepcopy import logging import subprocess +import shutil try: from paramgen_utils import is_logical_expr, is_formula, has_unexpanded_var @@ -136,9 +137,7 @@ def from_xml_nml(cls, input_path, match="last", no_duplicates=False): """ # First check whether the given xml file conforms to the entry_id_pg.xsd schema - from distutils.spawn import find_executable - - xmllint = find_executable("xmllint") + xmllint = shutil.which("xmllint") if xmllint is None: logger.warning("Couldn't find xmllint. Skipping schema check") else: