Thread: Module caching
View Single Post
  #6  
Old 10-10-2017, 10:22 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi Alex,

SecureCRT does cache the module as long as it is running. If you are seeing behavior where the cache is not cleared after quitting/restarting SecureCRT then perhaps we need further details regarding your installation. (What version of SecureCRT? On what OS? etc.)

You should be adding reload() following import as shown in this post.

You may also need to make use of the variable PYTHONDONTWRITEBYTECODE as explained in these posts on Stack Overflow:
http://stackoverflow.com/questions/1...instead-of-pyc
http://stackoverflow.com/questions/3...er-changing-it
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote