Skip to content

Commit d5fd321

Browse files
committed
Better handle missing folder(s) in models_location file
1 parent b59bec4 commit d5fd321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getmodels.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def set_models_locn(ini_file):
149149
msgbox.setWindowIcon(QtGui.QIcon('sen_icon32.ico'))
150150
msgbox.setText('SIREN Models folder missing')
151151
msgbox.setInformativeText('Do you want to reset the Models location (Y)?')
152-
msgbox.setDetailedText("Can't find " + model_dir + '. ' + \
152+
msgbox.setDetailedText("Can't find locations in\n'" + models_location + "'.\n" + \
153153
"If you reply 'Y'es you can choose a new location for the Models.")
154154
msgbox.setIcon(QtWidgets.QMessageBox.Question)
155155
msgbox.setStandardButtons(QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)

0 commit comments

Comments
 (0)