-// Copyright (C) 2014-2021 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// execute the dumped
PyGILState_STATE gstate = PyGILState_Ensure(); /* acquire python thread */
static char aReadMode[] = "r";
- FILE* PyFileObject = _Py_fopen(theFilename, aReadMode);
+ FILE* PyFileObject = fopen(theFilename, aReadMode);
PyRun_SimpleFileEx(PyFileObject, theFilename, 1);
PyGILState_Release(gstate); /* release python thread */