Source

""" This is a very hackish runner for cross compilation toolchain scratchbox.Later on we might come out with some general solution"""importosdefargs_for_scratchbox(cwd,args):return['/scratchbox/login','-d',str(cwd)]+argsdefrun_scratchbox(args,cwd,out,timeout=None):returnrun(args_for_scratchbox(cwd,args),cwd,out,timeout)defdry_run_scratchbox(args,cwd,out,timeout=None):returndry_run(args_for_scratchbox(cwd,args),cwd,out,timeout)if__name__=='__main__':importrunner# XXX hack hack hackdry_run=runner.dry_runrun=runner.runrunner.dry_run=dry_run_scratchboxrunner.run=run_scratchboximportsysrunner.main(sys.argv)