See also my recent reply to Xie on a recent thread:

[web2py:25413] Re: confusion about web2py's MVC
namespace<http://groups.google.com/group/web2py/msg/1fcecf8cf3456bbd>


On Wed, Jul 1, 2009 at 4:51 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> No app/modules and controllers folder are not in the paths
>
> try print sys.path to be sure
>
> note: do not modify you sys.path in the web2py apps of you run into
> memory leaks and threading issues. If you really need to, paths should
> only be modified in web2py.py
>
> Massimo
>
>
>
>
> On Jul 1, 4:35 pm, JohnMc <maruadventu...@gmail.com> wrote:
> > Generally use source as the test box is a linux machine. But thanks
> > for the tip.
> >
> > I'll go check my paths.
> >
> > That does bring up a followup question. For Web2Py is the search
> > heirarchy ==
> >
> > controller-->app/module/-->python path ?
> >
> > Thanks.
> >
> > JohnMc
> >
> > On Jul 1, 4:23 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> >
> > > You code below is correct, you just have to make sure the libraries
> > > are in the search path. If you use third party libraries you should
> > > run web2py from source else you may run into trouble because you would
> > > have two python interepreters (the one that ships with binaries and
> > > the one you used to install the libs).
> >
> > > On Jul 1, 4:19 pm, JohnMc <maruadventu...@gmail.com> wrote:
> >
> > > > I have a problem that has me stumped. Code snippet below. Attempting
> > > > to import two external libraries that I built. I receive a ticket
> > > > indicating module not found in app/module folder which is to be
> > > > expected. I looked in the manual, AlterEgo and this group. There was
> a
> > > > reference back in April to this but it does not seem to address my
> > > > issue.
> >
> > > > What is the proper format to reference an external python library
> from
> > > > Web2Py?
> >
> > > > Thanks!
> >
> > > > JohnMc
> >
> > > > In Controller:
> > > > ------------------------
> > > > # try something like
> > > > #Import pyquery and lxml components
> > > > from lxml import etree
> > > > from pyquery import PyQuery as pq
> >
> > > > #Private functions
> > > > ...
> > > > ...
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to