What I do for quite some time yet is to delete the modules inside the
sys.modules dictionary. This is a pretty dirty solution and produces problems
when you try to access data from somewhere without reimporting a deleted module
but it worked very fine for me so far.
So, let's say that my code lies inside a package called "myPackage" I would
execute following code:
import sys
for key in sys.modules.keys():
if "myPackage" in key:
del sys.modules[key]
print "Deleting module {0}".format(key)
You can normally import your stuff and the executed code will be updated.
Greets,
Carlo
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.