mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only).
This commit is contained in:
parent
e1f4c92d23
commit
176cda11df
2 changed files with 4 additions and 1 deletions
|
@ -118,7 +118,7 @@ def addbuilddir():
|
|||
s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
|
||||
if hasattr(sys, 'gettotalrefcount'):
|
||||
s += '-pydebug'
|
||||
s = os.path.join(os.path.dirname(sys.path[-1]), s)
|
||||
s = os.path.join(os.path.dirname(sys.path.pop()), s)
|
||||
sys.path.append(s)
|
||||
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #8205: Remove the "Modules" directory from sys.path when Python is
|
||||
running from the build directory (POSIX only).
|
||||
|
||||
- Issue #7667: Fix doctest failures with non-ASCII paths.
|
||||
|
||||
- Issue #7512: shutil.copystat() could raise an OSError when the filesystem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue