From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 10 Oct 2025 05:08:51 +0000 (+0300) Subject: gh-138614: `site._get_path` to respect non-default implementation name (#138610) X-Git-Tag: v3.15.0a1~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=744ec1d6c395f7a443ba4609d6023f86c245db58;p=thirdparty%2FPython%2Fcpython.git gh-138614: `site._get_path` to respect non-default implementation name (#138610) * `site._get_path` to respect non-default implementation name * Add news entry * Remove NEWS entry --- diff --git a/Lib/site.py b/Lib/site.py index f93271971594..f0e74eeee2f2 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -333,7 +333,7 @@ def _get_path(userbase): if sys.platform == 'darwin' and sys._framework: return f'{userbase}/lib/{implementation_lower}/site-packages' - return f'{userbase}/lib/python{version[0]}.{version[1]}{abi_thread}/site-packages' + return f'{userbase}/lib/{implementation_lower}{version[0]}.{version[1]}{abi_thread}/site-packages' def getuserbase():