import tkMarkdown from srctools.logger import init_logging, get_logger import tk_tools import utils if __name__ == '__main__': utils.fix_cur_directory() LOGGER = init_logging( '../logs/compiler_pane.log', __name__, on_error=tk_tools.on_error ) utils.setup_localisations(LOGGER) else: LOGGER = get_logger(__name__) from tkinter import * from tk_tools import TK_ROOT, FileField from tkinter import ttk from tkinter import filedialog from PIL import Image, ImageTk from typing import Dict, Tuple import os from BEE2_config import ConfigFile, GEN_OPTS from packageLoader import CORRIDOR_COUNTS, CorrDesc from tooltip import add_tooltip, set_tooltip import selectorWin import SubPane
"""Run the BEE2.""" # First do a few things as early as possible. import utils import srctools.logger utils.fix_cur_directory() # We need to initialise logging as early as possible - that way # it can record any errors in the initialisation of modules. import tk_tools LOGGER = srctools.logger.init_logging( str(utils.install_path('logs/BEE2.log')), on_error=tk_tools.on_error, ) utils.setup_localisations(LOGGER) # BEE2_config creates this config file to allow easy cross-module access from BEE2_config import GEN_OPTS from tk_tools import TK_ROOT import UI import loadScreen import paletteLoader import packageLoader import gameMan import logWindow import img import music_conf