mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-10 01:18:03 +03:00
setup: pylint: use pylint-2 binary if available
This commit is contained in:
parent
b690908aa4
commit
ced1d3cadb
5
setup.py
5
setup.py
@ -590,7 +590,10 @@ class CheckPylint(distutils.core.Command):
|
||||
os.system(cmd)
|
||||
|
||||
print("running pylint")
|
||||
cmd = "pylint "
|
||||
if os.path.exists("/usr/bin/pylint-2"):
|
||||
cmd = "pylint-2 "
|
||||
else:
|
||||
cmd = "pylint "
|
||||
cmd += "--rcfile tests/pylint.cfg "
|
||||
cmd += "--output-format=%s " % output_format
|
||||
cmd += "--ignore %s " % ",".join(
|
||||
|
Loading…
Reference in New Issue
Block a user