I wish to reload a module based upon some user input.
The following works…
while true
import mod
readline()
reload("mod")
mod.test()
end
but this fails to reload the module…
import mod
while true
readline()
reload("mod")
mod.test()
end
I assume due to some scoping rules. How can one achieve the same functionality without importing inside the while loop?