If you save your script from the scripter text edit window it will keep a note of the location and attempt to load it on next startup. If the file is moved or deleted in the interim, file loading will fail and scripter will not initialise.
Git commit 34954be8baa799dbd0299235ec068e89e1d84afb by Wolthera van Hövell tot Westerflier. Committed on 04/12/2017 at 19:35. Pushed by woltherav into branch 'master'. Adjust settings loading a bit. 1. First off, when there's no document, save an empty string. 2. Then, make sure to check if the filepath exists. 3. Also save and load the pointsize of the editor. M +6 -3 plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/editor/pythoneditor.py M +14 -6 plugins/extensions/pykrita/plugin/plugins/scripter/uicontroller.py https://commits.kde.org/krita/34954be8baa799dbd0299235ec068e89e1d84afb