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)
9 from dataBase import Base
11 if __name__ == "__main__":
12 from optparse import 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()
18 maBase=Base(options.database)
20 maBase.exportToCSV(options.partiel)