ESMCI / cime

Common Infrastructure for Modeling the Earth
http://esmci.github.io/cime
Other
161 stars 206 forks source link

Resolve issue #4576 #4597

Closed CollinsEM closed 1 month ago

CollinsEM commented 6 months ago

Fixes pylint failures when running regression tests.

SUMMARY

This patch fixes the pylint failures observed when running the regression tests using python 3.9.2.

ISSUE

While running the regression script, the pylint checks are failing due to Python being unable to resolve the sys module. The failure occurs in line 30 of cime/scripts/lib/CIME/code_checker.py.

RESOLUTION

Line 30 was modified to include import sys; prior to the invocation of sys.path.extend.

Test suite: scripts_regression_test Test baseline: failing pylint checks Test namelist changes: none Test status: passing pylint checks

Fixes CIME issue #4576

User interface changes?: none

Update gh-pages html (Y/N)?: N