Python Forum
update while running - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: update while running (/thread-18960.html)



update while running - Skaperen - Jun-08-2019

i have a very long running script that i would like to have update itself when the script file it was started with is updated. i could certainly check the file's date and see if it has changed. any suggestions for the best way to do this?


RE: update while running - metulburr - Jun-08-2019

Reload a module

https://www.geeksforgeeks.org/reloading-modules-python/