8

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?

0

3 Answers 3

5

Take at look at CherryPy's Autoreload feature. I think it looks quite simple and always worked well for me.

Sign up to request clarification or add additional context in comments.

Comments

4

Take look at Django's autoreload module. It works very well.

Comments

4

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

2 Comments

...and the highest voted answer since the Django module started with CherryPy.
Hey, I didn't even know that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.