Salome HOME
medcoupling documentation modification
[tools/medcoupling.git] / src / MEDLoader / Swig / med2case
index 7865dd6c306cf600f3545c9f1998f1d92a4d9c08..b7ff919e5b077b55a0133c2b96890af630a6e62a 100755 (executable)
@@ -1,11 +1,11 @@
-#!/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
@@ -18,7 +18,7 @@
 #
 # 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
@@ -26,7 +26,7 @@ from optparse import OptionParser
 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,
@@ -53,11 +53,11 @@ try:
     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 "#########"