-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2013 CEA/DEN, EDF R&D
+# Copyright (C) 2007-2016 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
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-# Author Anthony GEAY (CEA/DEN/DM2S/STMF/LGLS)
+# Author : Anthony GEAY (CEA/DEN/DM2S/STMF/LGLS)
from MEDLoader import MEDFileData,InterpKernelException
from CaseWriter import CaseWriter
import os
parser = OptionParser()
-parser.set_usage("Convert a MED file to a Case file.\n %prog [options] case_file")
+parser.set_usage("Convert a MED file to a Case file.\n %prog [options] med_file")
parser.add_option("-g", "--groups", action="store_true", dest="groups", default=False,
help="Are groups in meshes stored in MEDFile exported in output case as subparts (default False)")
parser.add_option("-c", "--currentdir", action="store_true", dest="here", default=False,
cw.setMEDFileDS(mfd)
listOfWrittenFileNames=cw.write(fOut)
except InterpKernelException as e:
- print "An error occured during the conversion!"
+ print "An error occurred during the conversion!"
print "#######################################"
raise e
print "#########"
for l in listOfWrittenFileNames:
- print "File \"%s\" sucessfully written !"%(l)
+ print "File \"%s\" successfully written !"%(l)
pass
print "#########"