-// 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"
%{
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())
%}