From 34e4a38f2d8345c6a622998d7039e263035fd0c0 Mon Sep 17 00:00:00 2001 From: Dominik Muhs Date: Wed, 10 Jun 2020 12:16:53 +0200 Subject: [PATCH] Mute solc which stderr output --- solcx/install.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/solcx/install.py b/solcx/install.py index 3716308..5b79906 100644 --- a/solcx/install.py +++ b/solcx/install.py @@ -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)