addon manager: use get_python_exe from utils file

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

View File

@@ -29,6 +29,7 @@ import subprocess
import FreeCAD
import FreeCADGui
from freecad.utils import get_python_exe
from PySide.QtWidgets import (
QFileDialog,
@@ -618,7 +619,7 @@ class DeveloperMode:
FreeCAD.Console.PrintMessage(
translate("AddonsInstaller", "Attempting to install Vermin from PyPi") + "...\n"
)
python_exe = utils.get_python_exe()
python_exe = get_python_exe()
vendor_path = os.path.join(FreeCAD.getUserAppDataDir(), "AdditionalPythonPackages")
if not os.path.exists(vendor_path):
os.makedirs(vendor_path)