File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/org/scijava/plugins/scripting/python Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,13 @@ public void save() {
187187 log .debug (exc );
188188 }
189189
190+ if (pythonMode && (pythonDir == null || !pythonDir .exists ())) {
191+ rebuildEnv ();
192+ }
190193 // Warn the user if pythonMode was just enabled and wasn't before
191194 if (!initialPythonMode && pythonMode && uiService != null ) {
192195 String msg =
193- "You have just enabled Python mode. Please restart for these changes to take effect!\n \n " +
196+ "You have just enabled Python mode. Please restart for these changes to take effect! (after your python environment initializes, if needed) \n \n " +
194197 "If Fiji fails to start, try deleting your configuration file and restarting.\n \n Configuration file: " +
195198 configFile ;
196199 uiService .showDialog (msg , "Python Mode Enabled" ,
You can’t perform that action at this time.
0 commit comments