Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request ironcladlou#104 from ironcladlou/redirect-stdin
Browse files Browse the repository at this point in the history
Redirect stdin during Popen call
  • Loading branch information
ironcladlou committed Sep 13, 2015
2 parents 99e3068 + c644e99 commit 77ad5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gotools_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def create_environment():
for k in env:
cmdenv[k] = env[k]
goenv, stderr = subprocess.Popen([gobinary, 'env'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, startupinfo=si, env=cmdenv).communicate()
stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, startupinfo=si, env=cmdenv).communicate()
if stderr and len(stderr) > 0:
raise Exception("'{0} env' returned an error: {1}".format(gobinary, stderr.decode()))

Expand Down

0 comments on commit 77ad5d8

Please sign in to comment.