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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.)