← Back to team overview

launchpad-dev team mailing list archive

Re: Rewrite script breaking because it indirectly imports Windmill

 

On Thu, 2010-02-04 at 16:38 -0500, Aaron Bentley wrote:
> 
> 2. lp.services.scripts.base imports lp.testing.layers so that
> execute_zcml_for_scripts can ensure we're not running under one.


> 4. stop importing ANONYMOUS from testing.  stop importing from
>    testing.layers.  This is hard, because we have a good reason for
>    importing layers. 

If layers are all defined under testing.layers, you could look in
sys.modules to see if ...testing.layers is imported at all.

-Rob

Attachment: signature.asc
Description: This is a digitally signed message part


References