Re: [QGIS-Developer] Reload python library used by plugin

2024-05-22 Thread Richard Duivenvoorde via QGIS-Developer
On 5/22/24 18:22, Benjamin Jakimow via QGIS-Developer wrote: Hi Gerald, you may use "from importlib import reload" to reload the packages that have been changed. https://docs.python.org/3/library/importlib.html#importlib.reload Wos, great!? If this works, it would be a good idea to create a

Re: [QGIS-Developer] Reload python library used by plugin

2024-05-22 Thread Benjamin Jakimow via QGIS-Developer
Hi Gerald, you may use "from importlib import reload" to reload the packages that have been changed. https://docs.python.org/3/library/importlib.html#importlib.reload Greetings, Benjamin On 16.05.2024 13:13, Gerald Kogler via QGIS-Developer wrote: The fantastic Plugin Reloader doesn't reload

[QGIS-Developer] Reload python library used by plugin

2024-05-16 Thread Gerald Kogler via QGIS-Developer
The fantastic Plugin Reloader doesn't reload loaded libraries as documented here (https://github.com/borysiasty/plugin_reloader/issues/37). So when I change code in a library used by a QGIS plugin the only way I know to reload this library is to restart QGIS. To make it clear: I'm not talking