1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

pylint: Update for newer versions of pylint

In later versions of pylint the 'version' attribute has been moved,
therefore check both options while attempting to detect the installed
version number.
This commit is contained in:
Marc Bonnici 2022-08-08 10:59:20 +01:00
parent 3b9fcd8001
commit 276f146c1e

View File

@ -36,6 +36,9 @@ pylint_version=$(python -c 'from pylint.__pkginfo__ import version; print(versio
if [ "x$pylint_version" == "x" ]; then
pylint_version=$(python3 -c 'from pylint.__pkginfo__ import version; print(version)' 2>/dev/null)
fi
if [ "x$pylint_version" == "x" ]; then
pylint_version=$(python3 -c 'from pylint import version; print(version)' 2>/dev/null)
fi
if [ "x$pylint_version" == "x" ]; then
echo "ERROR: no pylint verison found; is it installed?"
exit 1