]> granicus.if.org Git - python/commit
bpo-36236: Handle removed cwd at Python init (GH-12424)
authorVictor Stinner <vstinner@redhat.com>
Tue, 19 Mar 2019 15:09:27 +0000 (16:09 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2019 15:09:27 +0000 (16:09 +0100)
commitdcf617152e1d4c4a5e7965733928858a9c0936ca
tree61c2ce7f9a4bcb8a1f48efb1a24b0f50d4029372
parentf5f336a819a3d881bb217bf8f9b5cacba03a4e45
bpo-36236: Handle removed cwd at Python init (GH-12424)

At Python initialization, the current directory is no longer
prepended to sys.path if it has been removed.

Rename _PyPathConfig_ComputeArgv0() to
_PyPathConfig_ComputeSysPath0() to avoid confusion between argv[0]
and sys.path[0].
Include/internal/pycore_pathconfig.h
Misc/NEWS.d/next/Core and Builtins/2019-03-19-03-08-26.bpo-36236.5qN9qK.rst [new file with mode: 0644]
Modules/main.c
Python/pathconfig.c
Python/sysmodule.c