When I edit a processing script (QGIS 3.2) with right click > Edit script... in the processing toolbox, save it and then try to execute it by double clicking it in the processing toolbox, the version that was loaded at QGIS start is executed, not the one just edited. The only (painful!) way to execute my edited script is to restart QGIS 3 any time I made an edit.

Deleting the __pycache__ folder under ...processing/scripts/ seem to have no effect.

Is there another way to update a script to the edits just made? Like the plugin reloader?

Worth raising an issue?

UPDATE cp. https://issues.qgis.org/issues/19934


I think it's worth raising an issue. A fairly simple workaround is to click the Options button in the Processing Toolbox:


Then when the following window shows, just click OK. This should refresh the path of the scripts (which would be left the same) and reload the scripts:

Options interface

A wee bit quicker than reloading QGIS :)

| improve this answer | |
  • This works sometimes for me, but in most cases QGIS crashes when trying this (cp. issues.qgis.org/issues/19934), which obviously has the advantage of not having to restart QGIS manually, but simply using the 'restart QGIS' button... – Jochen Schwarze Sep 24 '18 at 15:07
  • @JochenSchwarze - Ahh, hasn't crashed for me so far. Hopefully this issue will get resolved soon :) – Joseph Sep 25 '18 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.