An example of what I'm trying to achieve:

`echo "BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/..')}"" >> somefile.txt`

I want the whole text in the outermost quotes inside "somefile.txt", and not have to modify it with escape sequences. I don't mind using something else other than `echo`.

I appreciate any input. ;-)