]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
9.9 ub22 fix on fopen
authorNicolas RECHATIN <nicolas.rechatin@cea.fr>
Thu, 5 Jan 2023 10:03:54 +0000 (11:03 +0100)
committerNicolas RECHATIN <nicolas.rechatin@cea.fr>
Thu, 5 Jan 2023 10:03:54 +0000 (11:03 +0100)
src/ModelHighAPI/ModelHighAPI_Tools.cpp

index 65f536b389b750dd27ecfaffea7c63a0b4929e65..16cfb99610e90829a43b7d2cd66c74c1058edd75 100644 (file)
@@ -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 */