addon manager: use get_python_exe from utils file

This commit is contained in:
Pesc0
2023-07-11 15:57:48 +02:00
parent 0e6ec6e3ac
commit be6ed4670b
6 changed files with 7 additions and 70 deletions

View File

@@ -36,6 +36,7 @@ from typing import Dict, List, Tuple
import FreeCAD
import FreeCADGui
from freecad.utils import get_python_exe
from PySide import QtCore, QtGui, QtWidgets
import addonmanager_utilities as utils
@@ -89,7 +90,7 @@ def call_pip(args) -> List[str]:
"""Tries to locate the appropriate Python executable and run pip with version checking
disabled. Fails if Python can't be found or if pip is not installed."""
python_exe = utils.get_python_exe()
python_exe = get_python_exe()
pip_failed = False
if python_exe:
call_args = [python_exe, "-m", "pip", "--disable-pip-version-check"]