From a50c04e52536faf3b11ef7b0b2cab7a17051e814 Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Mon, 10 Feb 2020 10:22:48 -0800 Subject: [PATCH] [cli] Fix fallback libs set after download --- pyhmy/_version.py | 2 +- pyhmy/cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhmy/_version.py b/pyhmy/_version.py index 376c1b9..52bba19 100644 --- a/pyhmy/_version.py +++ b/pyhmy/_version.py @@ -7,5 +7,5 @@ Provides pyhmy version information. from incremental import Version -__version__ = Version('pyhmy', 20, 1, 21) +__version__ = Version('pyhmy', 20, 1, 22) __all__ = ["__version__"] diff --git a/pyhmy/cli.py b/pyhmy/cli.py index 7854c81..aaa7f81 100644 --- a/pyhmy/cli.py +++ b/pyhmy/cli.py @@ -65,6 +65,7 @@ _keystore_cache_lock = Lock() environment = os.environ.copy() # The environment for the CLI to execute in. +# TODO: completely remove caching... we need to improve getting address better internally to REDUCE single calls.... def _cache_and_lock_accounts_keystore(fn): """ Internal decorator to cache the accounts keystore and @@ -126,7 +127,6 @@ def _set_account_keystore_path(): def _sync_accounts(): """ - # TODO: improve syncing... Internal function that UPDATES the accounts keystore with the CLI's keystore. """ new_keystore = _get_current_accounts_keystore() @@ -354,7 +354,7 @@ def download(path="./bin/hmy", replace=True, verbose=True): env["DYLD_FALLBACK_LIBRARY_PATH"] = parent_dir elif 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"): - env.update(get_bls_build_variables) + env.update(get_bls_build_variables()) else: raise RuntimeWarning(f"Could not get environment for downloaded hmy CLI at `{path}`") return env \ No newline at end of file