Skip to content

Commit

Permalink
path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan committed Aug 7, 2024
1 parent 6733889 commit 2684791
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Smelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,11 @@ def execute_ffmpeg_commands(self, commands):
commands (list): A list of command attribute names to execute.
"""
for i, cmd in enumerate(commands):
log_path = os.path.join(self.output_folder, 'logs', '{}_{}_log.txt'.format(self.output_folder_name, commands[i]))
log_path = os.path.join(self.output_folder, 'logs', '{}_log.txt'.format(commands[i]))
if platform.system() == 'Windows':
log_path = log_path.replace('\\', '/')
os.environ['FFREPORT'] = fr"file={log_path}:level=32"
log_path = os.path.normpath(log_path)
ffreport_value = "file=" + log_path + ":level=32"
os.environ['FFREPORT'] = ffreport_value
self.output_text.append(log_path)
step_text = "Step {}/{}: Running {}".format(i + 1, len(commands), cmd.replace('_', ' ').title())
self.step_label.setText(step_text)
Expand Down

0 comments on commit 2684791

Please sign in to comment.