diff options
Diffstat (limited to 'Modules/_winapi.c')
-rw-r--r-- | Modules/_winapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 4845b4e..2a916cc 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -1090,8 +1090,7 @@ _winapi_CreateProcess_impl(PyObject *module, } PyInterpreterState *interp = PyInterpreterState_Get(); - const PyConfig *config = _PyInterpreterState_GetConfig(interp); - if (config->_isolated_interpreter) { + if (!_PyInterpreterState_HasFeature(interp, Py_RTFLAGS_SUBPROCESS)) { PyErr_SetString(PyExc_RuntimeError, "subprocess not supported for isolated subinterpreters"); return NULL; |