diff options
author | Steve Dower <steve.dower@python.org> | 2020-09-04 23:45:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 23:45:54 (GMT) |
commit | dd18001c308fb3bb65006c91d95f6639583a3420 (patch) | |
tree | b956b93a0bd9324e864a551956829c42d3629bd7 /Lib/site.py | |
parent | 51b84f8e96a441c498210f827c1297ee4973525f (diff) | |
download | cpython-dd18001c308fb3bb65006c91d95f6639583a3420.zip cpython-dd18001c308fb3bb65006c91d95f6639583a3420.tar.gz cpython-dd18001c308fb3bb65006c91d95f6639583a3420.tar.bz2 |
bpo-41627: Distinguish 32 and 64-bit user site packages on Windows (GH-22098)
Also fixes the error message returned when sysconfig fails to interpolate a variable correctly.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py index 8979365..4c09577 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -274,7 +274,8 @@ def _get_path(userbase): version = sys.version_info if os.name == 'nt': - return f'{userbase}\\Python{version[0]}{version[1]}\\site-packages' + ver_nodot = sys.winver.replace('.', '') + return f'{userbase}\\Python{ver_nodot}\\site-packages' if sys.platform == 'darwin' and sys._framework: return f'{userbase}/lib/python/site-packages' |