Salome HOME
Merge branch 'V8_3_BR' into ngr/python3_dev
[modules/smesh.git] / src / Tools / Verima / Base / exportToCSV.py
1 #!/usr/bin/env python
2
3 import sys,os
4
5 pathRacine=os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),'..'))
6 if os.path.dirname(pathRacine) not in sys.path :
7    sys.path.insert(0,pathRacine)
8
9 from .dataBase import Base
10
11 if __name__ == "__main__":
12       from optparse import OptionParser
13       p=OptionParser()
14       p.add_option('-p',dest='partiel',action="store_true", default=False,help='export de machine, groupe, ratio Maille et Perf uniquement')
15       p.add_option('-d',dest='database',default="../myMesh.db",help='nom de la database')
16       options, args = p.parse_args()
17
18       maBase=Base(options.database)
19       maBase.initialise()
20       maBase.exportToCSV(options.partiel)
21       maBase.close()
22