Martin Crawford Posted March 24, 2021 Share Posted March 24, 2021 I have two scripts, main.py and utility.py It appears that utility.py is being cached and any change I make is not seen by main.py unless I restart vw. Is this normal, and perhaps more important, how do I work around this. Can I simply delete the files in the __pychche__ folder any time a change is made? Thanks Martin Quote Link to comment
PatW Posted March 24, 2021 Share Posted March 24, 2021 I used to create a "update" script in the resource palette for this. Import all modules that should be updated within there and execute it when changes have been made before running the real script. Quote Link to comment
Martin Crawford Posted March 24, 2021 Author Share Posted March 24, 2021 Thanks Martin Quote Link to comment
JBenghiat Posted March 24, 2021 Share Posted March 24, 2021 You can use the imp module to force externals to re-import. See here: Quote Link to comment
Martin Crawford Posted March 25, 2021 Author Share Posted March 25, 2021 PERFECT! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.