> -----Original Message-----
> From: Chuck Esterbrook [mailto:[EMAIL PROTECTED]]
> Sent: 31. ma� 2001 15:14
> To: Sasa Zivkov; [EMAIL PROTECTED]
> Subject: RE: [Webware-discuss] Problems with import in package generated
> by MiddleKit
>
>
> At 03:04 PM 5/31/2001 +0000, Sasa Zivkov wrote:
> > > Well you said your app works, right? What does os.getcwd() give
> > > you in your
> > > app?
> >
> >os.getcwd() gives:
> >
> >/usr/local/lib/python2.1/Webware/WebKit
> >
> >which is directory where I started AppServer from.
>
> Well then '../../' would be:
>
> /usr/local/lib/python2.1/
>
>
> But that's not where 'middle' lives, so the "from middle.video import
> video" in GenVideo that is now working, seems to prove that
> '../../' works
> off of the "cur module dir" and not the "cur process dir".

"from middle.video import video" in GenVideo is now working not because
of "../../" but because (based on your tip) I put the "middle"'s parent
directory
into sys.path

I can comment out the line that inserts "../../" into sys.path in
GenVideo.py
and "from middle.video import video" still works.

-- Sasa


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to