From b71d70b5c5d9947f59e5f868989c60a798998503 Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Thu, 26 Dec 2019 23:09:11 -0800 Subject: [PATCH] [cli] Add getter for binary path --- pyhmy/cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyhmy/cli.py b/pyhmy/cli.py index 9b88605..c6a882a 100644 --- a/pyhmy/cli.py +++ b/pyhmy/cli.py @@ -91,6 +91,13 @@ def check_address(address): return address in _addresses.values() +def get_binary_path(): + """ + :return: The absolute path of the CLI binary. + """ + return os.path.abspath(_binary_path) + + def get_address(name): """ :param name: The alias of a key used in the CLI's keystore.