smesh/src/Tools/Verima/createDatabase.py

22 lines
464 B
Python
Raw Normal View History

#!/usr/bin/env python
import sys
2017-03-20 13:27:30 +01:00
from .Base.dataBase import Base
def creeDatabase(fichier):
maBase=Base(fichier)
maBase.create()
maBase.initialise()
maBase.remplit()
maBase.close()
if __name__ == "__main__":
from optparse import OptionParser
p=OptionParser()
p.add_option('-d',dest='database',default="myMesh.db",help='nom de la database')
options, args = p.parse_args()
creeDatabase(options.database )