Reloading a module
-
I'm new to python and I may be going a bit crazy but how do you reload an imported module? I created a simple module that I import into my project. I then went back and made changes to the module and the script keep running the prior version before changes. The only way I was able to reload the updated module was to clear Pythonista from memory and reload it.
-
It seems like Pythonista might have bugged out. After the restart files are updating and loading correctly.
edit*
It worked for a few minutes then it stopped updating the module when I made changes. I must be doing something wrong.
-
A fair amount has been written on this topic. The first thread is probably the most instructive.
http://omz-forums.appspot.com/pythonista/post/6016338648629248
http://omz-forums.appspot.com/pythonista/post/5865279414337536
http://omz-forums.appspot.com/pythonista/post/5901501423681536
-
@ccc Thanks for the links. Solved the problem.