Salome HOME
Fix MEDCoupling tests currently failing on Windows OS:
[tools/medcoupling.git] / src / RENUMBER_Swig / MEDRenumberCommon.i
index dbcae633e7c03153d949e858122f2aa46459ffd5..0e765e803db5373119b76cd0f7976d1e865b6614 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
+// Copyright (C) 2007-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
@@ -24,9 +24,7 @@
 %include "MEDCouplingCommon.i"
 
 %{
-#ifndef WIN32
 #include "MEDCouplingMemArray.txx"
-#endif
 #include "MCAuto.hxx"
 #include "MEDCouplingDataArrayTypemaps.i"
 
@@ -68,6 +66,6 @@ using namespace INTERP_KERNEL;
 import os
 __filename=os.environ.get('PYTHONSTARTUP')
 if __filename and os.path.isfile(__filename):
-  exec(open(__filename).read())
-  pass
+  with open(__filename) as __fp:
+        exec(__fp.read())
 %}