Reloading all modules 1.0

Operating systemsOS : Windows / Linux / Mac OS / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - Python License
CreatedCreated : Jun 7, 2007
Size downloadDownloads : 1
Program licensing
Thank you for voting...

When you create a Python module, you can use a test ...

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. This python script shows you how to do that.

Reloading all modules 1.0 scripting tags: script testing, reloading all modules, script debugging, import, module testing. What is new in Reloading all modules 1.0 software script? - Unable to find Reloading all modules 1.0 news. What is improvements are expecting? Newly-made Reloading all modules 1.1 will be downloaded from here. You may download directly. Please write the reviews of the Reloading all modules. License limitations are unspecified.