[Zope] import from a product's Extensions
marc lindahl
marc@bowery.com
Sun, 16 Sep 2001 14:57:40 -0400
How about
from Extensions import Utils
or
from Extensions.Utils import *
since you're running in the Prod directory already...
> From: Mitchell L Model <mlm@acm.org>
> Date: Sun, 16 Sep 2001 14:36:56 -0400
> To: zope@zope.org
> Subject: [Zope] import from a product's Extensions
>
> While debugging in pdb I want to experiment with some Python methods
> in my product's Extensions folder. I can import modules from my
> product directory, but I can't figure out how to import from my
> product's Extensions directory. Given a product named Prod and a
> file Utils.py in Extensions, none of the following work:
>
> import Prod.Extensions.Utils
> import Prod.Utils
> import Products.Prod.Extensions.Utils
> import Products.Prod.Utils