From e4be1f52cc150c3e4a00dfa8d6dbe6fc39c3c58b Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Dec 2024 15:48:56 -0700 Subject: [PATCH] remove another reference to distutils --- CIME/code_checker.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CIME/code_checker.py b/CIME/code_checker.py index fdc1eedefd8..08a5a021b0f 100644 --- a/CIME/code_checker.py +++ b/CIME/code_checker.py @@ -4,6 +4,7 @@ import os import json +from shutil import which from CIME.XML.standard_module_setup import * @@ -19,16 +20,13 @@ from multiprocessing.dummy import Pool as ThreadPool -# pylint: disable=import-error -from distutils.spawn import find_executable - logger = logging.getLogger(__name__) ############################################################################### def _run_pylint(all_files, interactive): ############################################################################### - pylint = find_executable("pylint") + pylint = which("pylint") cmd_options = ( " --disable=I,C,R,logging-not-lazy,wildcard-import,unused-wildcard-import"