def deldict(basename): d = dict(wdcfg.dictlist()) wdcfg.deldict(basename) del dictpool[basename] path = d[basename] del d[basename] if path not in d.values(): _usedpath.remove(os.path.abspath(path))
def loaddicts(): for name, path in wdcfg.dictlist(): if not _adddict(path): wdcfg.deldict(name)