Ich habe diesen Teil des folgenden Code:Keine in umgeleitet stdout
p = subprocess.Popen(['C:/Python27/python.exe', '-m', 'robot', '-d', logs_directory, input_file], stdout=subprocess.PIPE)
for line in iter(p.stdout.readline, ''):
output = sys.stdout.write(line)
#sys.stdout.write(line)
print "\n\n"
print "************************************************"
print output
print "\n\n"
print "************************************************"
print "\n\n"
Aber 'Output' Variable in der Konsole zeigt 'none'
************************************************
None
************************************************
Was ich hier falsch mache?
verwandte: [Python subprocess Kinder Ausgabe erhalten Datei und Terminal?] (Http://stackoverflow.com/q/4984428/4279) – jfs