If the main python program first initializes a set of modules and then waits to run their def Run()
functions when will it recompile the modules if changed?
Consider the example below...
main script
import mod_a
import mod_b
import mod_c
a = mod_a(<arg>)
b = mod_b(<arg>)
c = mod_c(<arg>)
list_to_run = [a, b, c]
for module in list_to_run:
module.Run()
Assume mod_a.Run() and mod_b.Run() take some time to run.
I start the main script.
While mod_a.Run()
is running I make a change in mod_c.Run()
and delete the mod_c.pyc
file.
When it comes time for the main script to call mod_c.Run()
will it recompile and incorporate the change?