From dacfa02f61cc21a7ca8a474c1fe1c3405cfb74ed Mon Sep 17 00:00:00 2001 From: Eric Collins Date: Wed, 21 Feb 2024 14:33:00 -0600 Subject: [PATCH] Resolve issue #4576 This patch fixes the pylint failures observed when running the regression tests using python 3.9.2. --- CIME/code_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CIME/code_checker.py b/CIME/code_checker.py index c0cba663208..ba92fc87ea5 100644 --- a/CIME/code_checker.py +++ b/CIME/code_checker.py @@ -44,7 +44,7 @@ def _run_pylint(all_files, interactive): # cmd_options +=",relative-import" # add init-hook option - cmd_options += ' --init-hook=\'sys.path.extend(("%s","%s","%s","%s"))\'' % ( + cmd_options += ' --init-hook=\'import sys; sys.path.extend(("%s","%s","%s","%s"))\'' % ( os.path.join(cimeroot, "CIME"), os.path.join(cimeroot, "CIME", "Tools"), os.path.join(cimeroot, "scripts", "fortran_unit_testing", "python"),