Skip to content

Commit c0569a3

Browse files
authored
Add-On Manager: collapse up-level vendor_path reference for better legibility (FreeCAD#19828)
1 parent a2b15f1 commit c0569a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Mod/AddonManager/addonmanager_utilities.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,10 @@ def get_pip_target_directory():
421421

422422
vendor_path = site.getusersitepackages()
423423
else:
424-
vendor_path = os.path.join(
425-
fci.DataPaths().mod_dir, "..", "AdditionalPythonPackages", f"py{major}{minor}"
424+
vendor_path = os.path.normpath(
425+
os.path.join(
426+
fci.DataPaths().mod_dir, "..", "AdditionalPythonPackages", f"py{major}{minor}"
427+
)
426428
)
427429
return vendor_path
428430

0 commit comments

Comments
 (0)