Reputation: 724
If I make some changes to one of the files belonging to a running app, is there a way to tell the python runtime to automatically reload the module/file?
Upvotes: 8
Views: 2080
Reputation: 2879
Here is a very old module that I posted nearly ten years ago. I may no longer work with current Python versions (I have not checked) but it may give some ideas.
http://mail.python.org/pipermail/python-list/2000-April/031568.html
Upvotes: 4
Reputation: 2120
Take at look at CherryPy's Autoreload feature. I think it looks quite simple and always worked well for me.
Upvotes: 5
Reputation: 22776
Take look at Django's autoreload module. It works very well.
Upvotes: 4