import SCons.Script # this does all the work, and calls sys.exit # with the proper exit status when done. SCons.Script.main()