Reloading all modules


Version: 1.0
Category:
Scripts
Python
Requirements:
Seller:
Price:
-
System:
Rating:
4.2
License:

Description - Reloading all modules



When you Create a Python module, you can use a test script wich import your module. But you probably have noticed that when you run the test script, it always use the first version of your module even if you made changes in the code. This is because the import statement check if the module is already in memory and do the import stuff only when this is mandated. You can use the reload() function but this is quite difficult if you do changes in a module wich isn`t directly imported by your test script. A good solution could be to remove all modules from memory before running the test script. You only have to put some few lines at the start of your test script.



More in Python-Reloading all modules

Modules Import Test Script Module Wich Isn`t