yyc12345
73b7d96795
- fix viewer throw decorate error when a graph don't contain any bb - fix export data error when Virtools face unrecongized data type
22 lines
466 B
Python
22 lines
466 B
Python
import DecoratorCore
|
|
import ServerCore
|
|
import os
|
|
import sys
|
|
|
|
# debug use
|
|
# os.remove('decorate.db')
|
|
|
|
print('Super Script View')
|
|
if not os.path.isfile("decorate.db"):
|
|
print('No decorated database, generating it.')
|
|
if not os.path.isfile('export.db'):
|
|
print('No export.db. Fail to generate. Exit app.')
|
|
sys.exit(1)
|
|
|
|
# generate db
|
|
DecoratorCore.run()
|
|
print('Decorated database generating done.')
|
|
|
|
# todo: start flask
|
|
ServerCore.run()
|