This commit is contained in:
Rasmus Wriedt Larsen 2022-12-15 15:33:09 +01:00
Родитель 2f6d17472d
Коммит 4bd9723e2b
Не найден ключ, соответствующий данной подписи
2 изменённых файлов: 3 добавлений и 5 удалений

6
lib/analyze.js сгенерированный
Просмотреть файл

@ -50,6 +50,7 @@ async function setupPythonExtractor(logger) {
// If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything
return;
}
const scriptsFolder = path.resolve(__dirname, "../python-setup");
let output = "";
const options = {
listeners: {
@ -58,10 +59,7 @@ async function setupPythonExtractor(logger) {
},
},
};
await new toolrunner.ToolRunner(codeqlPython, [
"-c",
"import os; import pip; print(os.path.dirname(os.path.dirname(pip.__file__)))",
], options).exec();
await new toolrunner.ToolRunner(codeqlPython, [path.join(scriptsFolder, "find_site_packages.py")], options).exec();
logger.info(`Setting LGTM_INDEX_IMPORT_PATH=${output}`);
process.env["LGTM_INDEX_IMPORT_PATH"] = output;
output = "";

Различия файлов скрыты, потому что одна или несколько строк слишком длинны