mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00: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:
parent
3b9fcd8001
commit
276f146c1e
@ -36,6 +36,9 @@ pylint_version=$(python -c 'from pylint.__pkginfo__ import version; print(versio
|
|||||||
if [ "x$pylint_version" == "x" ]; then
|
if [ "x$pylint_version" == "x" ]; then
|
||||||
pylint_version=$(python3 -c 'from pylint.__pkginfo__ import version; print(version)' 2>/dev/null)
|
pylint_version=$(python3 -c 'from pylint.__pkginfo__ import version; print(version)' 2>/dev/null)
|
||||||
fi
|
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
|
if [ "x$pylint_version" == "x" ]; then
|
||||||
echo "ERROR: no pylint verison found; is it installed?"
|
echo "ERROR: no pylint verison found; is it installed?"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user