Salome HOME
[bos #32505] [CEA] Additional patches for Fedora 36. SPNS-29988-SHAPER-V9_9_0.patch
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.cpp
index 89f61b480228a57056086ce65d2cf058bf440204..87f24f8151eb31769cbda52b5e5ef4724e71d715 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -559,7 +559,7 @@ static bool checkDump(SessionPtr theSession,
   // 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 */