It depends. If you want to import any NORMAL python module, put it in
site packages and import it using normal python syntax.

If you want to import "web2py modules", i.e. modules that belong to a
specific application only, then you have to follow the rules and not
all modules can be imported this way.

Massimo

On Jun 13, 4:46 pm, pierreth <[email protected]> wrote:
> I found that importing modules in Web2py seems to be very complex:
>
> http://web2py.com/book/default/section/4/18
>
> I have a module in 'modules' and I do 'import modules.my_module' to
> import the module in my application.
>
> This is working fine with Eclipse Pydev because I have setup the
> Python path for my application in Eclipse.
>
> But outside Eclipse, it does not work because the path is not there.
>
> Why should it be more complicated than that? I see this as a bug.
>
> I will modify my application to add the path but I believe this is the
> job of Web2py.

Reply via email to