You're welcome.

Another way can be using 'site' module, i'm using it to point my
script to custom python's site-packages directory on my hosting like
this:

import site
site.addsitedir("/pub/home/username/lib/python2.6/site-packages")


On Mar 24, 1:28 pm, helight <[email protected]> wrote:
> On 3月24日, 下午5時58分, andrei <[email protected]> wrote:> in your code.wsgi:
>
> > import os, sys
> > sys.path.append(os.path.abspath(os.path.dirname(__file__)))
>
> > On Mar 24, 5:52 am, helight <[email protected]> wrote:
>
> Yes,It works.
>
> Thank you.
>
> And is there any way else!
>
>
>
>
>
> > > hi guys:
>
> > > I have such problem: I install apache and wsgi together, and write a
> > > webpy test file, it's ok,
>
> > > but if I want to import other files to the main file,it report
> > > error:ImportError: No module named xxx
>
> > > I don't how to handle this, any one can help me! thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to