feat(MainWindow.py): set default output folder path to input file's directory if output folder path is empty or None when selecting a file.
This commit is contained in:
parent
33ebfe9192
commit
18eaf6a016
@ -106,6 +106,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
file = QFileDialog.getOpenFileName()[0]
|
||||
self.input_file_path.setPlainText(file)
|
||||
self.output_file_prefix.setText(os.path.splitext(os.path.basename(file))[0])
|
||||
if self.output_folder_path.toPlainText() is None or self.output_folder_path.toPlainText() == "":
|
||||
self.output_folder_path.setPlainText(os.path.dirname(file))
|
||||
|
||||
def select_folder(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user