2024-02-25 01:42:17 +03:00
|
|
|
#!/usr/bin/python3
|
2024-06-04 17:25:11 +03:00
|
|
|
import os
|
2024-07-03 14:06:19 +03:00
|
|
|
import logging
|
2024-02-25 01:42:17 +03:00
|
|
|
|
2024-07-03 14:06:19 +03:00
|
|
|
from server.main import start_http_server
|
|
|
|
import config
|
2024-02-25 01:42:17 +03:00
|
|
|
|
|
|
|
|
2024-07-03 14:06:19 +03:00
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
2024-02-25 01:42:17 +03:00
|
|
|
if __name__ == "__main__":
|
2024-06-04 17:25:11 +03:00
|
|
|
try:
|
|
|
|
os.mkdir(os.path.join(os.getcwd(), "log"))
|
|
|
|
except OSError:
|
|
|
|
pass #print("dir is exists")
|
|
|
|
|
2024-07-03 14:06:19 +03:00
|
|
|
project_logotype = """
|
|
|
|
________ _ _ _______ _______ ______ _ _
|
|
|
|
| ______ | | |_ | | | _____ | | _____| | ___ | | | | |
|
|
|
|
| | |_| | | | | | | |_| | | | | | | |_| |_|
|
|
|
|
| | | ||_| | | |_|___ | |___ | |___| | | | | |
|
|
|
|
| | | | |_| | | |___|_ | ___| | ____| |_| |_|
|
|
|
|
| | _ | | |_|| | _ | | | | | |_|_ | | | |
|
|
|
|
| |______| | | | |_ | | |_____| | | |_____ | | |_|_ |_|_|_|
|
|
|
|
|________| |_| |_| |_______| |_______| | | |_| |_|
|
|
|
|
|
|
|
|
============================== Start HTTP server ==============================="""
|
|
|
|
|
|
|
|
log.info(project_logotype)
|
|
|
|
|
|
|
|
start_http_server()
|