the_platinum_searcher
the_platinum_searcher copied to clipboard
There is something wrong with pt using python.
import subprocess
aaa = subprocess.check_output('pt -g"" .', shell=True)
bbb = subprocess.Popen('pt -g "" .',shell=True,stdout=subprocess.PIPE).stdout.read()
ccc = subprocess.Popen('pt -g "" .',shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE).stdout.read()
print aaa
print bbb
print ccc
The result of aaa
and bbb
is good as expected, but ccc
is empty.
I think there is something wrong with pt about pipe.
On windows 10.