Salome HOME
760114d587f9083f70f943ce7165e7d42ba521da
[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 print pathRacine
8 if os.path.dirname(pathRacine) not in sys.path :
9    sys.path.insert(0,pathRacine)
10
11 from dataBase import Base
12
13 if __name__ == "__main__":
14       from optparse import OptionParser
15       p=OptionParser()
16       p.add_option('-p',dest='partiel',action="store_true", default=False,help='export de machine, groupe, ratio Maille et Perf uniquement')
17       p.add_option('-d',dest='database',default="../myMesh.db",help='nom de la database')
18       options, args = p.parse_args()
19
20       maBase=Base(options.database)
21       maBase.initialise()
22       maBase.exportToCSV(options.partiel)
23       maBase.close()
24