]> granicus.if.org Git - python/commit
bpo-32030: Add _PyMainInterpreterConfig.executable (#4876)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 15 Dec 2017 01:05:29 +0000 (02:05 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2017 01:05:29 +0000 (02:05 +0100)
commit41264f1cd4d6066b2797ff07cae465c1e06ff3b2
tree79949fe2a6d0a5cbe6bc33851c6b8e86e8340e2d
parentda273412c4374de07a500e7f23f89a6bb7527398
bpo-32030: Add _PyMainInterpreterConfig.executable (#4876)

* Add new fields to _PyMainInterpreterConfig:

  * executable
  * prefix
  * base_prefix
  * exec_prefix
  * base_exec_prefix

* _PySys_EndInit() now sets sys attributes from
  _PyMainInterpreterConfig
Include/pylifecycle.h
Include/pystate.h
Modules/main.c
Python/pylifecycle.c
Python/sysmodule.c