Fixed Save To not working when Model Test Mode is not checked

This commit is contained in:
Dilan Boskan 2021-01-16 10:07:07 +01:00
parent 8263598e8a
commit 925086d19a
2 changed files with 2 additions and 4 deletions

View File

@ -372,13 +372,12 @@ def main(window: tk.Wm, text_widget: tk.Text, button_widget: tk.Button, progress
button_widget.configure(state=tk.DISABLED) # Disable Button button_widget.configure(state=tk.DISABLED) # Disable Button
models, devices = load_models() models, devices = load_models()
folder_path = data["export_path"]
modelFolderName = determineModelFolderName() modelFolderName = determineModelFolderName()
if modelFolderName: if modelFolderName:
folder_path = os.path.join(data["export_path"], modelFolderName) folder_path = os.path.join(data["export_path"], modelFolderName)
if not os.path.isdir(folder_path): if not os.path.isdir(folder_path):
os.mkdir(folder_path) os.mkdir(folder_path)
else:
folder_path = ''
# Determine Loops # Determine Loops
total_loops = data['stackPasses'] total_loops = data['stackPasses']

View File

@ -379,13 +379,12 @@ def main(window: tk.Wm, text_widget: tk.Text, button_widget: tk.Button, progress
button_widget.configure(state=tk.DISABLED) # Disable Button button_widget.configure(state=tk.DISABLED) # Disable Button
vocal_remover = VocalRemover(data, text_widget) vocal_remover = VocalRemover(data, text_widget)
folder_path = data["export_path"]
modelFolderName = determineModelFolderName() modelFolderName = determineModelFolderName()
if modelFolderName: if modelFolderName:
folder_path = os.path.join(data["export_path"], modelFolderName) folder_path = os.path.join(data["export_path"], modelFolderName)
if not os.path.isdir(folder_path): if not os.path.isdir(folder_path):
os.mkdir(folder_path) os.mkdir(folder_path)
else:
folder_path = ''
# Determine Loops # Determine Loops
total_loops = data['stackPasses'] total_loops = data['stackPasses']