diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-12 00:08:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-12 00:10:12 +0300 |
commit | cafd6b519c5f5c4b67d0dfe3d453cd4223b38716 (patch) | |
tree | 718586fcff881f45360155c518a4b92c726c52e5 /source/creator | |
parent | aa43e2ec29a9f73918b12001c6e4f4b4c63fd9c9 (diff) |
PyAPI: Use PyPreConfig & PyConfig for Python initialization
Use Python 3.8's API for setting the initial configuration.
This replaces a mix of our logic and direct calls to the Python API
and has no user visible changes.
Using the Python API makes the logic easier to follow and provides
utilities such as `PyConfig_SetBytesArgv`
that wasn't available in previous releases.
Note that this uses Python's utf8/wchar_t conversions,
which used to cause problems (see T31506).
Since `Py_UTF8Mode` was set, the systems locale isn't used for decoding,
allowing us to use Python's utility functions that call
`Py_DecodeLocale` internally.
Ref D10382
Diffstat (limited to 'source/creator')
0 files changed, 0 insertions, 0 deletions