mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 21:50:28 +02:00
Fixed / and \ path display by normalizing paths
This commit is contained in:
@@ -308,6 +308,10 @@ class ConversionThread(QThread):
|
||||
input_file = self.display_path if self.display_path else self.file_name
|
||||
processing_file = self.file_name
|
||||
|
||||
# Normalize paths for consistent display (fixes Windows path separator issues)
|
||||
input_file = os.path.normpath(input_file) if input_file else input_file
|
||||
processing_file = os.path.normpath(processing_file) if processing_file else processing_file
|
||||
|
||||
self.log_updated.emit(f"- Input File: {input_file}")
|
||||
if input_file != processing_file:
|
||||
self.log_updated.emit(f"- Processing File: {processing_file}")
|
||||
|
||||
@@ -221,6 +221,10 @@ class QueueManager(QDialog):
|
||||
display_file_path = getattr(item, "save_base_path", None) or item.file_name
|
||||
processing_file_path = item.file_name
|
||||
|
||||
# Normalize paths for consistent display (fixes Windows path separator issues)
|
||||
display_file_path = os.path.normpath(display_file_path) if display_file_path else display_file_path
|
||||
processing_file_path = os.path.normpath(processing_file_path) if processing_file_path else processing_file_path
|
||||
|
||||
# Only show the file name, not the full path
|
||||
display_name = display_file_path
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user