Seeing changes made to a module in app/modules without restarting web2py

6 views
Skip to first unread message

cjparsons

unread,
Oct 17, 2008, 4:47:43 AM10/17/08
to web2py Web Framework
I have some helper functions in applications/[application]/modules/
helperFunctions.py.

I import that in my controller using the full path applications/
[application]/modules/helperFunctions

I find that if I make changes to helperFunctions.py web2py doesn't see
them until I restart web2py. Is there a way of forcing web2py to
reload the module whenever a function in the controller is executed?
This would be useful while getting the helperFunctions right.

Thank you

Chris

Jose de Oliveira Filho

unread,
Oct 17, 2008, 5:48:08 AM10/17/08
to web...@googlegroups.com
Hi,

reload(module)

You might want to take that out once you go into production.
(I just asked the same question this week, there's a small thread on
that.)

Deodoro Filho
Reply all
Reply to author
Forward
0 new messages