Skip to content

Commit

Permalink
Merge pull request #81 from dmuhs/master
Browse files Browse the repository at this point in the history
Mute solc which stderr output
  • Loading branch information
iamdefinitelyahuman authored Jun 10, 2020
2 parents f596b9c + 34e4a38 commit d501abe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion solcx/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def import_installed_solc(solcx_binary_path=None):

# copy active version of solc
path_list = []
which = subprocess.run(["which", "solc"], stdout=subprocess.PIPE).stdout.decode().strip()
which = (
subprocess.run(["which", "solc"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
.stdout.decode()
.strip()
)
if which:
path_list.append(which)

Expand Down

0 comments on commit d501abe

Please sign in to comment.