We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9462e0e commit 258e0b5Copy full SHA for 258e0b5
src/emc/pythonplugin/python_plugin.cc
@@ -333,7 +333,9 @@ PythonPlugin::PythonPlugin(struct _inittab *inittab) :
333
}
334
#if PY_VERSION_HEX >= 0x030800f0
335
config.buffered_stdio = 0;
336
- Py_InitializeFromConfig(&config);
+ if (!Py_IsInitialized()) {
337
+ Py_InitializeFromConfig(&config);
338
+ }
339
PyConfig_Clear(&config);
340
#else
341
Py_UnbufferedStdioFlag = 1;
0 commit comments