summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2018-04-15 21:52:57 +1000
committerGitHub <noreply@github.com>2018-04-15 21:52:57 +1000
commit82a948105920100ca2ec5c2340bc3890adcfe778 (patch)
treeb6ed9b9402c0e83386082933015b706e58db40d7 /Python/pythonrun.c
parent480ab05d5fee2b8fa161f799af33086a4e68c7dd (diff)
downloadcpython-git-82a948105920100ca2ec5c2340bc3890adcfe778.tar.gz
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
The pydoc CLI assumed -m pydoc would add the empty string to sys.path, and hence got confused when it switched to adding the full initial working directory instead. This refactors the pydoc CLI path manipulation to be more testable, and ensures it won't accidentally remove the standard library directory containing pydoc itself from sys.path.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions