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.
_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev

Reply via email to