Salome HOME
Updated copyright comment
[tools/medcoupling.git] / src / RENUMBER_Swig / MEDRenumberCommon.i
index a88e4fb6f9aa3b8a1d79bb2fe4a2da5f4a0bac88..717b15d775ecd634921b7984b4c3c71546c1052e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024  CEA, EDF
 //
 // 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
 
+%include "MEDCouplingCommon.i"
+
 %{
-#ifdef WIN32
-#define MEDCOUPLING_WIN32_SWIG
-#endif
 #include "MEDCouplingMemArray.txx"
 #include "MCAuto.hxx"
 #include "MEDCouplingDataArrayTypemaps.i"
@@ -67,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())
 %}