print "end before"
if index == 5:
output=child.before.strip()
print output
output=output.replace('\r','')
exitval=output.split('\n')[-1]
s=output.split('\n')[0:-1]
for line in s:
print line
try:
sys.exit(int(exitval))
except StandardError,inst:
print output.split('\n')[-1]
print "-------------------------------sfsd"
sys.exit(SPAWNED_BASE_CODE)
print 'unknown error'
sys.exit(UNKNOWN_ERROR)
阅读(556) | 评论(0) | 转发(0) |