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