mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00

pylint fails to read Qt modules when invoked as a subprocess with -j 0, and it looks like I committed this in the middle of debugging the issue. Work around it by invoking pylint directly. It's still awfully slow, taking 30 seconds on a 10 core machine.
21 lines
325 B
Python
21 lines
325 B
Python
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",
|
|
"0",
|
|
"-v",
|
|
]
|
|
)
|