Commit ad04a182 authored by xuanweiace's avatar xuanweiace

fix

parent d7001002
......@@ -387,9 +387,8 @@ def save_excel_to_to_path(all_element, new_excel_path, header, excel_sheet_name)
os.rename(backup_path,new_excel_path)
return exception_info
else:
print("backup_path::::", backup_path)
# if backup_path != None:
# os.remove(backup_path)
if backup_path != None:
os.remove(backup_path)
print("保存表格到路径[%s]成功"%(new_excel_path))
return None
......
......@@ -54,12 +54,12 @@ class SynthesisProcessor(QWidget):
# elif not os.path.exists(audio_dir):
# self.show_warning_signal.emit("当前音频存放路径有误,请检查一遍")
# return
if len(caption_path) == 0:
self.show_warning_signal.emit("请选择字幕文件存放路径")
return
elif not os.path.exists(os.path.dirname(caption_path)):
self.show_warning_signal.emit("请重新确认字幕文件存放路径是否正确")
return
# if len(caption_path) == 0:
# self.show_warning_signal.emit("请选择字幕文件存放路径")
# return
# elif not os.path.exists(os.path.dirname(caption_path)):
# self.show_warning_signal.emit("请重新确认字幕文件存放路径是否正确")
# return
# todo
# 显示进度条、进度条百分比及任务状态提示文本
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment