got that, thanks a lot. On 3月25日, 上午12时17分, andrei <andre...@gmail.com> wrote: > 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 <helight...@gmail.com> wrote: > > > > > > > > > On 3月24日, 下午5時58分, andrei <andre...@gmail.com> 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 <helight...@gmail.com> 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 webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.