2 # -*- coding: utf-8 -*-
3 # Copyright (C) 2013-2020 EDF R&D
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 from Base.dataBase import Base
25 from Base.versions import Chercheversion
28 if __name__ == "__main__":
29 from argparse import ArgumentParser
31 p.add_argument('-s',dest='salomePath',help='chemin du lanceur salome de la version a comparer',default="Appli")
32 p.add_argument('-v',dest='version',help='id de la version a comparer',default=None)
33 p.add_argument('-r',dest='versionRef',help='liste des id des versions de reference',default=None)
34 p.add_argument('-d',dest='database',default="myMesh.db",help='nom de la database')
35 p.add_argument('-f',dest='fileHtml',default="/tmp/toto.htm",help='nom du fichier produit')
38 if args.version is None :
39 args.version=Chercheversion(args.salomePath)
42 maBase=Base(args.database)
44 maBase.compare(args.version,args.versionRef,args.fileHtml)