From: Scott Rifenbark Date: Tue, 23 Feb 2016 17:18:08 +0000 (-0800) Subject: bitbake-user-manual: Added note for Python variable ref expansion. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ebe55cb8c8db1c5cf5d127e213487c5a453a68a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake-user-manual: Added note for Python variable ref expansion. Fixes [YOCTO #9148] Added a note about Variable expressions (e.g. ${X}) are no longer expanded within Python functions. Signed-off-by: Scott Rifenbark --- diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml b/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml index cfa85b379a9..359df8f75fb 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml @@ -840,6 +840,18 @@ is a global variable and is always automatically available. + + + Variable expressions (e.g. ${X}) are no + longer expanded within Python functions. + This behavior is intentional in order to allow you to freely + set variable values to expandable expressions without having + them expanded prematurely. + If you do wish to expand a variable within a Python function, + use d.getVar("X", True). + Or, for more complicated expressions, use + d.expand(). +