[Scons-dev] method for calling SCons as a library?
Daniel Holth
dholth at gmail.com
Thu Jun 29 09:37:02 EDT 2017
My SCons-powerd Python packaging tool needs to report the name of the file
it built from an API. Here's the method I've come up with. Is there a
better way to figure out what was actually built?
0. Update sys.argv[] to pass desired arguments to SCons
1. Call SCons.Script.Main.main()
2. Catch SystemExit
3. Examine SCons.Script.DEFAULT_TARGETS
4. return interesting target name
5. Exit Python
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20170629/c237f637/attachment.html>
More information about the Scons-dev
mailing list