Re: Possible bug
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]> Thu, 4 Dec 2003 15:43:20 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
On Yaum al-Khamees 09 Shawwal 1424 10:14, Tim Hemel wrote:
> @for d in expand2list(Subdirs):
> :print $d
> :execute $d/main.aap install
>
> Aap: Error in recipe "/usr/home/tim/soekris/main.aap" line 20: NameError:
> name 'Subdirs' is not defined
>
> Why is this variable not defined in that particular place, but is defined
> in all the others?
Most likely a scope problem. Try it with _no.get("Subdirs") instead, so it
reads
@for d in expand2list(_no.get("Subdirs")):
The problem you describe exists, and my workaround fixes it, on
beans.ebn.kun.nl$aap --version
A-A-P recipe executive version 1.046; released 2003 Oct 30 19:54:24 GMT
--
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
If the door is ajar, can we fill it with door-jamb?
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/