2020-04-05 22:34:11 +08:00
|
|
|
import DecoratorCore
|
2020-04-09 11:21:52 +08:00
|
|
|
import ServerCore
|
2020-04-05 22:34:11 +08:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
# debug use
|
2020-04-14 23:19:06 +08:00
|
|
|
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
|
2020-04-11 22:51:03 +08:00
|
|
|
ServerCore.run()
|