17 lines
No EOL
404 B
Python
17 lines
No EOL
404 B
Python
from venv import create
|
|
from Website import create_app
|
|
from flask_socketio import SocketIO
|
|
import atexit, sqlite3, sys, datetime, logging
|
|
|
|
def exit_handler():
|
|
sys.exit("Program sucsesfully exited")
|
|
|
|
def main():
|
|
app_data = create_app()
|
|
app = app_data["app"]
|
|
socketio = app_data["socketio"]
|
|
atexit.register(exit_handler)
|
|
socketio.run(app)
|
|
|
|
if __name__ == "__main__":
|
|
main() |