summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-06-28 16:34:42 (GMT)
committerGitHub <noreply@github.com>2017-06-28 16:34:42 (GMT)
commitb01c574ad6d796025152b5d605eceb7816e6f7a7 (patch)
treef14692649325a5e3c58aeeb1c68585fd7f954d6a /Lib/site.py
parenta8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 (diff)
downloadcpython-b01c574ad6d796025152b5d605eceb7816e6f7a7.zip
cpython-b01c574ad6d796025152b5d605eceb7816e6f7a7.tar.gz
cpython-b01c574ad6d796025152b5d605eceb7816e6f7a7.tar.bz2
bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h (#2477)
* bpo-29585: Fix PC/pyconfig.h whitespaces Run "make patchcheck". * bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h * site: Fix path separator in _get_path() on Windows
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index fcf7dde..d693bc8 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -266,7 +266,7 @@ def _get_path(userbase):
version = sys.version_info
if os.name == 'nt':
- return f'{userbase}/Python{version[0]}{version[1]}/site-packages'
+ return f'{userbase}\\Python{version[0]}{version[1]}\\site-packages'
if sys.platform == 'darwin' and sys._framework:
return f'{userbase}/lib/python/site-packages'