def __init__(self):
    self.base_path = ((Path().home() / '.config') / 'alacritty')
    if (not self.base_path.exists()):
        raise ConfigError(f'Config directory not found: {self.base_path}')
    self.config_file = (self.base_path / 'alacritty.yml')
    if (not self.config_file.is_file()):
        log.warn('Config file not found')
        self.config_file.touch()
        print('Created config file =>', end=' ', file=stderr)
        log.color_print(self.config_file, log.Color.BLUE, file=stderr)
    self.config = self._load(self.config_file)
    if (self.config is None):
        self.config = {}
        log.warn('Alacritty config file was empty')
    self.resources = {'themes': {'type': 'Themes directory', 'path': (self.base_path / 'themes'), 'exists': (lambda : self.resources['themes']['path'].is_dir()), 'create': (lambda : self.resources['themes']['path'].mkdir())}, 'fonts': {'type': 'Fonts file', 'path': (self.base_path / 'fonts.yaml'), 'exists': (lambda : self.resources['fonts']['path'].is_file()), 'create': (lambda : self.resources['fonts']['path'].touch())}}
def __init__(self):
    self.base_path = ((Path().home() / '.config') / 'alacritty')
    if (not self.base_path.exists()):
        raise ConfigError(f'Config directory not found: {self.base_path}')
    self.config_file = (self.base_path / 'alacritty.yml')
    if (not self.config_file.is_file()):
        log.warn('Config file not found')
        self.config_file.touch()
        print('Created config file =>', end=' ', file=stderr)
        log.color_print(self.config_file, log.Color.BLUE, file=stderr)
    self.config = self._load(self.config_file)
    if (self.config is None):
        self.config = {}
        log.warn('Alacritty config file was empty')
    self.resources = {'themes': {'type': 'Themes directory', 'path': (self.base_path / 'themes'), 'exists': (lambda : self.resources['themes']['path'].is_dir()), 'create': (lambda : self.resources['themes']['path'].mkdir())}, 'fonts': {'type': 'Fonts file', 'path': (self.base_path / 'fonts.yaml'), 'exists': (lambda : self.resources['fonts']['path'].is_file()), 'create': (lambda : self.resources['fonts']['path'].touch())}}