Do not do this. The models are executed at every http call and you end up 
with a longer and longer sys.path (memory leak).
The problem is with the module itself, it does not uses relative imports.
I recommend you put the module in web2py/site-packages

On Wednesday, 2 January 2019 02:49:56 UTC-8, Alfonso Serra wrote:
>
> Hi, so far it looks like this works:
>
> at the model 01_config.py
>
> import sys
> sys.path.insert(0, r"E:\webdev\web2py-mod.02\applications\myapp\modules")
>
> then im able to import as:
> from utils import myfunc
>
> where utils.py is an application module at applications\myapp\modules
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to