This commit is contained in:
soju6jan
2022-10-02 20:18:05 +09:00
parent b9c3aac91f
commit 29930fdef7
150 changed files with 53982 additions and 0 deletions

20
main.py Normal file
View File

@@ -0,0 +1,20 @@
try:
from gevent import monkey;monkey.patch_all()
print('[MAIN] gevent mokey patch!!')
except:
print('[MAIN] gevent not installed!!')
import os, sys, traceback
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib'))
sys.path.insert(1, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib2'))
try:
from framework import frame
if __name__ == '__main__':
frame.start()
else:
app = frame.app
celery = frame.celery
except Exception as exception:
print(str(exception))
print(traceback.format_exc())