X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FRENUMBER_Swig%2FMEDRenumberCommon.i;h=717b15d775ecd634921b7984b4c3c71546c1052e;hb=b832b15337be013a56e0976170e5e235b89fcb03;hp=a88e4fb6f9aa3b8a1d79bb2fe4a2da5f4a0bac88;hpb=ad373daf5193daf8a8c990f5012158f38d8e74fa;p=tools%2Fmedcoupling.git diff --git a/src/RENUMBER_Swig/MEDRenumberCommon.i b/src/RENUMBER_Swig/MEDRenumberCommon.i index a88e4fb6f..717b15d77 100644 --- a/src/RENUMBER_Swig/MEDRenumberCommon.i +++ b/src/RENUMBER_Swig/MEDRenumberCommon.i @@ -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 @@ -21,10 +21,9 @@ %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()) %}