Is there a clean way to extract the configured interpreter, libraries, etc from the python module?
In particular, I'd like to run some python scripts as a later stage of a build process to generate additional targets. Supposing that Jamroot may have been configured for some special variant of python, it'd be handy to extract the correct interpreter to use, eg:
Way up in Jamroot:
using python : <some version> : <some python root> ;
Way down in a Jamfile:
local py_interp = [ modules.peek python : interpreter ] ;
make file.out : file.in : @in2out ;Is there a way to do this? Am I going about it the wrong way altogether?
actions in2out
{
$(py_interp) in2out.py $(<) $(>)
}