From 44acaf212172dc9410774629592dbd88f95d8188 Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Thu, 9 Jan 2020 00:10:04 -0800 Subject: [PATCH] [cli] Only set default binary if required harmony repos are presents --- pyhmy/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhmy/cli.py b/pyhmy/cli.py index 6f85325..ac6c265 100644 --- a/pyhmy/cli.py +++ b/pyhmy/cli.py @@ -367,6 +367,6 @@ def download(path="./bin/hmy", replace=True, verbose=True): if os.path.exists(f"{get_gopath()}/src/github.com/harmony-one/bls") \ and os.path.exists(f"{get_gopath()}/src/github.com/harmony-one/mcl"): # Check prevents needless import fails. environment.update(get_bls_build_variables()) -_default_bin_path = _get_default_hmy_binary_path() -if _default_bin_path and is_valid_binary(_default_bin_path): - set_binary(_default_bin_path) + _default_bin_path = _get_default_hmy_binary_path() + if _default_bin_path and is_valid_binary(_default_bin_path): + set_binary(_default_bin_path)