[cli] Add getter for binary path

pull/2/head
Daniel Van Der Maden 5 years ago
parent 8b9f6448db
commit b71d70b5c5
  1. 7
      pyhmy/cli.py

@ -91,6 +91,13 @@ def check_address(address):
return address in _addresses.values() 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): def get_address(name):
""" """
:param name: The alias of a key used in the CLI's keystore. :param name: The alias of a key used in the CLI's keystore.

Loading…
Cancel
Save