[cli] Only set default binary if required harmony repos are presents

pull/2/head
Daniel Van Der Maden 5 years ago
parent 88bcf04072
commit 44acaf2121
  1. 6
      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)

Loading…
Cancel
Save