Salome HOME
Fix MEDCoupling tests currently failing on Windows OS:
[tools/medcoupling.git] / src / RENUMBER_Swig / MEDRenumberCommon.i
index cfc8354ecf339c45989c2f0bb5de157163c8c82c..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
 %include std_vector.i
 %include std_string.i
 
-%{
-#ifdef WIN32
-#define MEDCOUPLING_WIN32_SWIG
-#endif
-%}
-
 %include "MEDCouplingCommon.i"
 
 %{
@@ -72,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())
 %}