Walter Rojas Posted March 29, 2023 Share Posted March 29, 2023 (edited) Routinely I import (level 1) a py module (level 2) that, in turn, imports another module (level 3). I've been making changes for weeks to the level 3 module and those were reflected in VW until now. Suddenly VW2023 stopped to detect changes to the level 3 module; I tried to fix resetting script's paths with no success. The solution was to use the importlib module in the level 2 script to force the reloading of the level 3 module: import utilerias import importlib import utilerias importlib.reload(utilerias) Hope it helps. Edited March 29, 2023 by Walter Rojas Quote Link to comment
JBenghiat Posted March 29, 2023 Share Posted March 29, 2023 Yes, this is known/expected. Vectorworks preserves the Python session and caches any imports. There’s been a couple threads on the subject: 1 Quote Link to comment
Walter Rojas Posted March 29, 2023 Author Share Posted March 29, 2023 hace 9 minutos, JBenghiat dijo: Yes, this is known/expected. Zen advice: To live with no expectations. Thanks for your patience. 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.