6

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

1 Answer 1

5

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

Options

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 :)

3
  • 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... Sep 24, 2018 at 15:07
  • @JochenSchwarze - Ahh, hasn't crashed for me so far. Hopefully this issue will get resolved soon :)
    – Joseph
    Sep 25, 2018 at 9:19
  • this did not work for me unfortunately. I have various scripts importing each other, maybe that's why? Jun 17, 2023 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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