|
|
@ -50,7 +50,7 @@ import re |
|
|
|
|
|
|
|
|
|
|
|
from .util import get_bls_build_variables, get_gopath |
|
|
|
from .util import get_bls_build_variables, get_gopath |
|
|
|
|
|
|
|
|
|
|
|
_accounts = {} # Internal accounts keystore, make sure to sync to keep up to date. |
|
|
|
_accounts = {} # Internal accounts keystore, make sure to sync when needed. |
|
|
|
_account_keystore_path = "~/.hmy/account-keys" # Internal path to account keystore, will match the current binary. |
|
|
|
_account_keystore_path = "~/.hmy/account-keys" # Internal path to account keystore, will match the current binary. |
|
|
|
_binary_path = "hmy" # Internal binary path. |
|
|
|
_binary_path = "hmy" # Internal binary path. |
|
|
|
_environment = os.environ.copy() # Internal environment dict for Subprocess & Pexpect. |
|
|
|
_environment = os.environ.copy() # Internal environment dict for Subprocess & Pexpect. |
|
|
@ -264,7 +264,7 @@ def expect_call(command, timeout=60): |
|
|
|
""" |
|
|
|
""" |
|
|
|
:param command: String fo command to execute on CLI |
|
|
|
:param command: String fo command to execute on CLI |
|
|
|
:param timeout: Optional timeout in seconds |
|
|
|
:param timeout: Optional timeout in seconds |
|
|
|
:return: A pexpect child program |
|
|
|
:returns: A pexpect child program |
|
|
|
:raises: RuntimeError if bad command |
|
|
|
:raises: RuntimeError if bad command |
|
|
|
""" |
|
|
|
""" |
|
|
|
command_toks = command.split(" ") |
|
|
|
command_toks = command.split(" ") |
|
|
|