mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-21 12:47:54 +05:00
22 lines
463 B
Python
22 lines
463 B
Python
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
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 )
|
||
|
|