This repository has been archived on 2024-09-10. You can view files and clone it, but cannot push or open issues or pull requests.
Douyin_Web_Live/main.py
2022-07-15 17:22:58 +08:00

22 lines
367 B
Python

import logging
import atexit
from flask import Flask
from core import CoreManager
from core.controller.manager_blueprint import blueprint as manager_blueprint
app = Flask(__name__)
app.register_blueprint(manager_blueprint)
def _on_exit():
c = CoreManager()
del c
atexit.register(_on_exit)
if __name__ == '__main__':
c = CoreManager()
app.run()