Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
accessibility_movie_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵心治
accessibility_movie_2
Commits
ad04a182
Commit
ad04a182
authored
Nov 16, 2022
by
xuanweiace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d7001002
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
management.py
management.py
+2
-3
synthesis.py
synthesis.py
+6
-6
No files found.
management.py
View file @
ad04a182
...
...
@@ -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
...
...
synthesis.py
View file @
ad04a182
...
...
@@ -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
# 显示进度条、进度条百分比及任务状态提示文本
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment