summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-02-08 23:52:56 (GMT)
committerBrett Cannon <brett@python.org>2012-02-08 23:52:56 (GMT)
commitb4e63b3177f50d519aeac2f59d38af4503b82d62 (patch)
treeb94d1946b9b4889ed9d679667afe0a0bc517e819 /Misc/NEWS
parent354c26ecd6d1f6341bb1f65ea099d6952a29abd8 (diff)
downloadcpython-b4e63b3177f50d519aeac2f59d38af4503b82d62.zip
cpython-b4e63b3177f50d519aeac2f59d38af4503b82d62.tar.gz
cpython-b4e63b3177f50d519aeac2f59d38af4503b82d62.tar.bz2
Use the cwd when the empty string is found in sys.path. This leads to
__file__ being an absolute path when the module is found in the current directory.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 55940e5..6ec3df8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -466,6 +466,9 @@ Core and Builtins
Library
-------
+- When '' is a path (e.g. in sys.path), make sure __file__ uses the current
+ working directory instead of ''.
+
- Issue #13609: Add two functions to query the terminal size:
os.get_terminal_size (low level) and shutil.get_terminal_size (high level).
Patch by Zbigniew Jędrzejewski-Szmek.