SuperScriptMaterializer/SuperScriptViewer/SuperScriptViewer.py

22 lines
466 B
Python
Raw Normal View History

2020-04-05 22:34:11 +08:00
import DecoratorCore
import ServerCore
2020-04-05 22:34:11 +08:00
import os
import sys
# debug use
# os.remove('decorate.db')
2020-04-05 22:34:11 +08:00
2020-04-03 23:57:36 +08:00
print('Super Script View')
2020-04-05 22:34:11 +08:00
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()