I ́m working on a main script with additional code based in a lib folder like this:
main.py
\mylib
util.py
(contains the class Utility)
node.py
in main.py
I ́ve imported mylib like this:
from mylib.util import Utility
x = Utility()
It seems like QGIS python console caches the mylib
on startup - changes made to the Utility class made after startup is ignored.
Is there a way to reload mylib without restarting QGIS?
axel_ande
2,13415 silver badges28 bronze badges
asked Mar 31, 2017 at 9:00
lang-py
{}
button that enables you to format any highlighted code nicely.