[Zope] error calling Zope.app()

mathew mathew@yeates.tv
Wed, 23 Apr 2003 16:35:03 -0700


Whoa... what the hell?
I set a breakpoint before the line
from Products.PythonScripts.PythonScript import PythonScript

then
(pdb) import Products
(pdb) print Products.__path__
[]

Huh?? At an earlier place in the code Products.__path__ definitely had what
looked to
be the correct path. Where and why is it being reset?

Mathew
----- Original Message -----
From: "Dieter Maurer" <dieter@handshake.de>
To: "mathew" <mathew@yeates.tv>
Cc: "Andreas Jung" <andreas@andreas-jung.com>; <zope@zope.org>
Sent: Tuesday, April 22, 2003 12:06 PM
Subject: Re: [Zope] error calling Zope.app()


> mathew wrote at 2003-4-21 10:15 -0700:
>  > No. This isnt it. Look at my message. I step into the debugger right
before
>  > the line
>  > from Products.PythonScripts.PythonScript import PythonScript
>  > and
>  > (pdb) import Products
>  > works, but
>  > (pdb) import Products.PythonScripts
>  > doesnt work.
>
> Check which "Products" you got:
>
>       (pdb) p Products.__path__
>
>
> It may well be a "Products" you do not want.
>
>
> Dieter
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>