diff --git a/CIME/code_checker.py b/CIME/code_checker.py index 4c05f22e477..fdc1eedefd8 100644 --- a/CIME/code_checker.py +++ b/CIME/code_checker.py @@ -45,11 +45,14 @@ def _run_pylint(all_files, interactive): # cmd_options +=",relative-import" # add init-hook option - 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"), - os.path.join(srcroot, "components", "cmeps", "cime_config", "runseq"), + 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"), + os.path.join(srcroot, "components", "cmeps", "cime_config", "runseq"), + ) ) files = " ".join(all_files)