reload ext. doesn't work in python extensions
reload ext. doesn't work in python extensions
I changed an extension written in Python, clicked reload ext. and when I try it I get the same effect as if I hadn't clicked on it (it doesn't get reloaded)
There's a "trick" that you can use to reload the package as well.
Suppose you have a custom class called MyClass inside a module called MyModule. Somewhere in your code you will have a line like this:
in order to reload the module and its classes you should unload it manually in the destroy() method.
Example:
hope it helps
Suppose you have a custom class called MyClass inside a module called MyModule. Somewhere in your code you will have a line like this:
Code: Select all
from MyModule import MyClassExample:
Code: Select all
def destroy():
import sys
del sys.modules["MyModule"]