From: PASCALE NOYRET Date: Wed, 27 Mar 2024 17:24:30 +0000 (+0100) Subject: oubli X-Git-Tag: V_demo_28_mars_2024~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae58188cfb91288b8dc8cdd28dea915151753c09;p=tools%2Feficas.git oubli --- diff --git a/Tools/generateComm.py b/Tools/generateComm.py new file mode 100755 index 00000000..de3bdd2e --- /dev/null +++ b/Tools/generateComm.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# Copyright (C) 2007-2013 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. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +""" +"" + cree le .xml associe au .comm + generateXML.py -c leCatalogue le.comm + 23 avril + +""" +# Modules Python +# Modules Eficas + +import sys +import os +sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../')) + +from Editeur import eficas_go +if eficas_go.genereComm(code='NonConnu'): + sys.exit(0) +else : + sys.exit(1)