Reload custom .py packages


there is a mode do force VC to reload Python cusom modules or packages
if they are been externally modified?

Or I need to close and reopen VC each time to do that?


Luciano Cavallero
Flexcon s.r.l.

Hi Luciano,

normally you can simply use the reload() method to reload a python module:



VC seems to cache various files that it accesses. Sometimes I find that attempting to reload only reloads from the cache and not the modified version. I suggest closing and reopening VC each time to get a clean slate. Test this by simply adding a print “version number” statement to your library when you modify it.