# Path: l5r/util/log.py
# def log_setup(base_path, base_name):


import sys
import l5r.api as api
import l5r.api.character.spells
import l5r.api.data.spells
from l5r.util import log
from PyQt5 import QtCore, QtGui, QtWidgets
                return []

            no_defic = self.no_deficiency

            if ring in api.character.spells.deficiencies() and no_defic:
                return []

            if self.maho_flt == 'only_maho':
                return api.data.spells.get_maho_spells(ring, mastery)
            elif self.maho_flt == 'no_maho':
                return api.data.spells.get_spells(ring, mastery, maho=False)
            else:
                return api.data.spells.get_spells(ring, mastery, maho=True)

        avail_spells = get_avail_spells()

        # remove blacklisted spells
        if not self.blacklist:
            self.blacklist = []

        avail_spells = [x for x in avail_spells if x not in self.blacklist]

        if len(avail_spells) == 0:
            self.cb_spell.addItem(self.tr('No spell available'), None)
        else:
            for spell in avail_spells:
                self.cb_spell.addItem(spell.name, spell)

    def set_spell(self, spell):
        if spell:

# Path: l5r/util/log.py
# def log_setup(base_path, base_name):


# Path: l5r/widgets/spell_item_selection.py
import sys
import l5r.api as api
import l5r.api.character.spells
import l5r.api.data.spells
from l5r.util import log
from PyQt5 import QtCore, QtGui, QtWidgets

                return []

            no_defic = self.no_deficiency

            if ring in api.character.spells.deficiencies() and no_defic:
                return []

            if self.maho_flt == 'only_maho':
                return api.data.spells.get_maho_spells(ring, mastery)
            elif self.maho_flt == 'no_maho':
                return api.data.spells.get_spells(ring, mastery, maho=False)
            else:
                return api.data.spells.get_spells(ring, mastery, maho=True)

        avail_spells = get_avail_spells()

        # remove blacklisted spells
        if not self.blacklist:
            self.blacklist = []

        avail_spells = [x for x in avail_spells if x not in self.blacklist]

        if len(avail_spells) == 0:
            self.cb_spell.addItem(self.tr('No spell available'), None)
        else:
            for spell in avail_spells:
                self.cb_spell.addItem(spell.name, spell)

    def set_spell(self, spell):
        if spell:

            log.ui.debug('set spell: {0}', spell.id)