fix #19
This commit is contained in:
parent
26ddb22b5f
commit
b93d144c78
@ -640,6 +640,11 @@ class MdxService(LocalService):
|
|||||||
if savepath is None:
|
if savepath is None:
|
||||||
savepath = '_' + basename
|
savepath = '_' + basename
|
||||||
try:
|
try:
|
||||||
|
src_fn = self.dict_path.replace(self._filename+u'.mdx', basename)
|
||||||
|
if os.path.exists(src_fn):
|
||||||
|
shutil.copy(src_fn, savepath)
|
||||||
|
return savepath
|
||||||
|
else:
|
||||||
bytes_list = self.builder.mdd_lookup(filepath_in_mdx)
|
bytes_list = self.builder.mdd_lookup(filepath_in_mdx)
|
||||||
if bytes_list and not os.path.exists(savepath):
|
if bytes_list and not os.path.exists(savepath):
|
||||||
with open(savepath, 'wb') as f:
|
with open(savepath, 'wb') as f:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user