vtkPythonInterpreter: support initialization with argc/argv

With Python 3.8, the new PyConfig structure may be used to set up Python before it is ready. With Python 3.10, this is now effectively mandatory as Py_Main(argc, argv) will ignore any previously prepared configuration and instead use the arguments to initialize the interpreter state.

Instead, put the arguments into PyConfig (or manually before Python 3.8).


Cc: @dgobbi @amaclean

Edited by Ben Boeckel

Merge request reports

Loading