Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is something wrong with pt using python. #181

Open
Yggdroot opened this issue Jun 2, 2017 · 0 comments
Open

There is something wrong with pt using python. #181

Yggdroot opened this issue Jun 2, 2017 · 0 comments

Comments

@Yggdroot
Copy link

Yggdroot commented Jun 2, 2017

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.

@Yggdroot Yggdroot closed this as completed Jun 3, 2017
@Yggdroot Yggdroot reopened this Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant