mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 09:10:07 +08:00
python-setup: Handle poetry virtualenvs.options.no-pip = true
Fixes https://github.com/github/codeql-action/issues/1425
This commit is contained in:
@@ -9,8 +9,7 @@ def get_details(path_to_python_exe: str) -> Tuple[str, str]:
|
||||
import_path = subprocess.check_output(
|
||||
[
|
||||
path_to_python_exe,
|
||||
"-c",
|
||||
"import os; import pip; print(os.path.dirname(os.path.dirname(pip.__file__)))",
|
||||
os.path.join(os.path.dirname(__file__), "find_site_packages.py")
|
||||
],
|
||||
stdin=subprocess.DEVNULL,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user