mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #28046: Remove platform-specific directories from sys.path
This commit is contained in:
parent
b44acebc7b
commit
c4b53afce4
10 changed files with 24 additions and 37 deletions
|
@ -1292,7 +1292,8 @@ def buildPython():
|
|||
|
||||
import pprint
|
||||
if getVersionMajorMinor() >= (3, 6):
|
||||
path = os.path.join(path_to_lib, 'plat-darwin', '_sysconfigdata_m.py')
|
||||
# XXX this is extra-fragile
|
||||
path = os.path.join(path_to_lib, '_sysconfigdata_m_darwin_darwin.py')
|
||||
else:
|
||||
path = os.path.join(path_to_lib, '_sysconfigdata.py')
|
||||
fp = open(path, 'r')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue