SuperScriptMaterializer/SuperScriptViewer/SuperScriptViewer.py
yyc12345 73b7d96795 fix 2 bugs
- fix viewer throw decorate error when a graph don't contain any bb
- fix export data error when Virtools face unrecongized data type
2020-04-13 23:59:51 +08:00

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()