Addon Manager: use versioned Python package dirs

This commit is contained in:
Chris Hennes
2022-11-01 17:02:20 -05:00
parent 30c76a6f34
commit 48307b91f5
5 changed files with 181 additions and 25 deletions

View File

@@ -425,9 +425,7 @@ class DependencyInstallationWorker(QtCore.QThread):
if self.location:
vendor_path = os.path.join(self.location, "AdditionalPythonPackages")
else:
vendor_path = os.path.join(
FreeCAD.getUserAppDataDir(), "AdditionalPythonPackages"
)
vendor_path = utils.get_pip_target_directory()
if not os.path.exists(vendor_path):
os.makedirs(vendor_path)