[Scons-users] Importing Module That is a Build Product

Fred Wright fw at fwright.net
Fri Sep 16 13:09:31 EDT 2016


On Fri, 16 Sep 2016, Keith F Prussing wrote:
> On 2016-09-15, Bill Deegan wrote:
>
> >Could you eval the logic (I know it's not recommended, but it's effectively
> >what's being done here anyway)
>
> I could but I have a strong aversion to eval except in tightly
> controlled conditions. ;-) I'd prefer to be explicit about where my
> constants are.

You could use ast.literal_eval:

	https://docs.python.org/2/library/ast.html

Fred Wright


More information about the Scons-users mailing list