mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
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
This commit is contained in:
parent
a8f8d5b4bd
commit
b01c574ad6
2 changed files with 53 additions and 50 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue