-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to stop opening a new terminal window for each command? #9
Comments
I was using it as a Package inside Sublime Text. I figured out to fix is necessary to a pipe call with the following: with subprocess.Popen(
args,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
startupinfo=startupinfo,
cwd=cwd,
env=os.environ
) as proc:
for line in proc.stdout:
line = line.decode(encoding)
line = line.replace('\r\n', '\n').rstrip(' \n\r')
# process line here
print(line) |
evandrocoan
added a commit
to evandrocoan/channelmanager
that referenced
this issue
Jul 31, 2017
evandrocoan
added a commit
to evandrocoan/channelmanager
that referenced
this issue
Aug 2, 2017
evandrocoan
added a commit
to evandrocoan/channelmanager
that referenced
this issue
Oct 2, 2017
evandrocoan
added a commit
to evandrocoan/StudioChannel
that referenced
this issue
Oct 2, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am import this like this:
But for each git command command it do, it open a new shell terminal window.
The text was updated successfully, but these errors were encountered: