Importing modules seems to be cached

Hi, I have 2 versions of one module I would like to test them by just changing the import statement and re-running the script. But in practise after running the first module and changing the import to the next module. The script still uses the first run module.

You can try using reload from importlib module, to load new version of changed module.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.