Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,13 @@ public void save() {
log.debug(exc);
}

if (pythonMode && (pythonDir == null || !pythonDir.exists())) {
rebuildEnv();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

}
// Warn the user if pythonMode was just enabled and wasn't before
if (!initialPythonMode && pythonMode && uiService != null) {
String msg =
"You have just enabled Python mode. Please restart for these changes to take effect!\n\n" +
"You have just enabled Python mode. Please restart for these changes to take effect! (after your python environment initializes, if needed)\n\n" +
"If Fiji fails to start, try deleting your configuration file and restarting.\n\nConfiguration file: " +
configFile;
uiService.showDialog(msg, "Python Mode Enabled",
Expand Down