2021-04-13 10:45:05 +02:00
|
|
|
# Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
2021-01-07 07:20:02 +01:00
|
|
|
import multiprocessing
|
2020-11-01 05:26:58 +01:00
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
2021-01-07 07:20:02 +01:00
|
|
|
import PyQt5
|
2021-01-07 06:47:25 +01:00
|
|
|
from pylint.lint import Run
|
2020-11-01 05:26:58 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2020-11-03 23:44:47 +01:00
|
|
|
(module, ini) = sys.argv[1:]
|
2020-11-01 05:26:58 +01:00
|
|
|
ini = os.path.abspath(ini)
|
|
|
|
|
2021-01-07 06:47:25 +01:00
|
|
|
Run(
|
|
|
|
[
|
|
|
|
"qt/aqt",
|
|
|
|
"--rcfile",
|
|
|
|
ini,
|
|
|
|
"-j",
|
2021-01-07 06:50:28 +01:00
|
|
|
str(min(4, multiprocessing.cpu_count())),
|
2021-01-07 06:47:25 +01:00
|
|
|
"-v",
|
|
|
|
]
|
2020-11-01 05:26:58 +01:00
|
|
|
)
|