Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade initializiation of PythonEngine to use PyConfig #5294

Open
jmarrec opened this issue Nov 7, 2024 · 0 comments
Open

Upgrade initializiation of PythonEngine to use PyConfig #5294

jmarrec opened this issue Nov 7, 2024 · 0 comments

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented Nov 7, 2024

Enhancement Request

I had a TODO for this for a while

PythonEngine::PythonEngine(int argc, char* argv[]) : ScriptEngine(argc, argv), program(Py_DecodeLocale(pythonProgramName, nullptr)) {
// TODO: modernize and use PyConfig (new in 3.8): https://docs.python.org/3/c-api/init_config.html

Py_SetPath was actually removed from 3.13 API

cf 998e13e

Detailed Description

https://docs.python.org/3/whatsnew/3.13.html

image

Possible Implementation

https://docs.python.org/3/c-api/init_config.html#c.PyConfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant