mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-14 06:54:51 -05:00
setup: pylint: use pylint-2 binary if available
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user