示例#1
0
文件: dicman.py 项目: yindian/webdic
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))
示例#2
0
文件: dicman.py 项目: yindian/webdic
def loaddicts():
	for name, path in wdcfg.dictlist():
		if not _adddict(path):
			wdcfg.deldict(name)