27 lines
544 B
Python
27 lines
544 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
import multiprocessing
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
import PyQt5
|
|
from pylint.lint import Run
|
|
|
|
if __name__ == "__main__":
|
|
(module, ini) = sys.argv[1:]
|
|
ini = os.path.abspath(ini)
|
|
|
|
Run(
|
|
[
|
|
"qt/aqt",
|
|
"--rcfile",
|
|
ini,
|
|
"-j",
|
|
str(min(4, multiprocessing.cpu_count())),
|
|
"-v",
|
|
"--persistent=no",
|
|
]
|
|
)
|