line number variable?
Cory Dodt <corydodt-wgPraSjSqjuEakHPNWoOSQC/[email protected]> Wed, 13 Oct 2004 10:29:01 -0700
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there any way, either in Python or in AAP syntax, to get the recipe line number? I would like to write some code like: @for location in location_list: @ if os.path.isfile(location): ~ var = $location @assert hasattr(_no, 'var'), "var was !set at line %s of setup.aap"%_no.LINENO While we're at it, is there any way to find out what the name of the current recipe is? Thanks, C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBbWXd3A5SrXAiHQcRAp8sAJ9IIHgeW/01zmKWHADEIxbVlNTDzACfaV84 sL+KcZiMO7quIf84MFB1PUw= =FlG7 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl