On Oct 15, 2:16 am, Tim Fletcher <[EMAIL PROTECTED]> wrote: > What's the current (0.3) way to use the reloader? I would expect the > following to work, but it doesn't: > > if __name__ == "__main__": > web.webapi.internalerror = web.debugerror > app = web.application(urls, globals()) > app.run(web.reloader)
I found that I had to make a startup script and put my reloadable code in another imported file. The reloader refuses to reload the __main__ module. It's called start.py and I posted it in another discussion: http://groups.google.com/group/webpy/browse_thread/thread/1bd55d3426ec1c74/052883ed7c24666b#052883ed7c24666b I think I may have edited the web/http.py file as per instructions from another discussion... I think you have to change `web.loadhooks[..] = ..` to `app.loadhook(..)` or something. Searching for the discussion about 0.3 and reloading might help... Samuel Cochran --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
