I'm not trying to export or create a variable inside a recipe because that's easy and not my case. But I want to create a variable that a user can define in local.conf or in other conf files and a recipe that checks the value of that variable and do some stuff with it like: python (){ a = d.getVar('MY_VARIABLE' or '') } How can I do this? Thanks, Talel