Added python lock for Py_CallObject
@@ -181,8 +181,13 @@ function_return function_py_interface_invoke(function func, function_impl impl,
}
}
+ PyGILState_STATE gstate;
+ gstate = PyGILState_Ensure();
+
result = PyObject_CallObject(py_func->func, tuple_args);
+ PyGILState_Release(gstate);
+
Py_DECREF(tuple_args);
if (result != NULL && ret_type != NULL)
@@ -524,7 +529,7 @@ loader_handle py_loader_impl_load_from_file(loader_impl impl, const loader_namin
Py_DECREF(current_path);
module = PyImport_Import(py_module_name);
-
+ PyErr_Print();
module_dict = PyModule_GetDict(module);
PyDict_Merge(main_dict, module_dict, 0);
