summaryrefslogtreecommitdiff
path: root/host.py
blob: dab3a6b375a817b80a195b42b44dc5b6fec98da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Lines: ~3700 (+ 386 Shared) + 2730 (GUI)
from server.state import ServerStatic
from shared.state import Static

Static.setup()
ServerStatic.setup()

from server.settings import Settings
Settings.set_environment()

from server.socket import ServerSocket
from server.error import ServerError
from server.console import Console
from server.parse import Parse


class Server:

    def __init__(self):
        Console.init()

    @ServerError.critical
    def run(self):
        ServerSocket().threads()
        Parse.stdin()


if __name__ == '__main__':
    Server().run()