-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
34 lines (33 loc) · 1.59 KB
/
main.py
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
30
31
32
33
34
#===========================================================================
# Cache redirecting to _temp folder
import sys; sys.pycache_prefix = "_temp/cache"
#----------------------------------
# Logging system
import core.file_system.log_manag as lg; lg.run(); lg.run_path()
import logging; logging.debug(lg.run_text())
#===========================================================================
from core.utils import temp_remover, scx; temp_remover()
from core.file_system.repo_manag import logs_deleting, folder_init
folder_init()
#===========================================================================
# WELCOME IN THE ISLE OF ANSUR
#-------------------------------
# This game operates on heavy modularisation of both code and file systems,
# supporting user-created content in similar way as Forge API for Minecraft,
# or Elder Scrolls modding system, from which it takes inspiration.
# While analysing the code, take in mind those principles.
#-------------------------------
# If you do not understand what specific function does, use IDE and jump
# into said function - almost all non-straightforward functions have
# comments explaining their use and caveats.
# Some of technical backgrounds are also explained in documentation (see
# 'docks/mods' folder bundled with game).
#===========================================================================
from core.circles import *
try:
# from core.file_system.theme_manag import get_theme; print(get_theme())
main_circle()
except Exception:
log.critical("Main chain stopped. Printing the issue.", exc_info=True)
finally:
logs_deleting(scx("lglm"))