diff options
author | Brett Cannon <brett@python.org> | 2012-02-08 23:52:56 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-02-08 23:52:56 (GMT) |
commit | b4e63b3177f50d519aeac2f59d38af4503b82d62 (patch) | |
tree | b94d1946b9b4889ed9d679667afe0a0bc517e819 /Misc/NEWS | |
parent | 354c26ecd6d1f6341bb1f65ea099d6952a29abd8 (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |