@LocalContext
def run_assembly_exitcode(assembly):
 p = run_assembly(assembly)
 p.wait_for_close()
 return p.poll()

@ LocalContext def run_assembly_exitcode ( assembly ) : p = run_assembly ( assembly ) p . wait_for_close ( ) return p . poll ( )
given an assembly listing .