mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
tools: fix encfs_aes_getpass for new UI
This commit is contained in:
parent
601d3b49c3
commit
2251b9c16a
@ -14,6 +14,7 @@ import hashlib
|
||||
|
||||
from trezorlib.client import TrezorClient
|
||||
from trezorlib.transport import enumerate_devices
|
||||
from trezorlib.ui import ClickUI
|
||||
|
||||
|
||||
def wait_for_devices():
|
||||
@ -41,7 +42,7 @@ def choose_device(devices):
|
||||
sys.stderr.write("Available devices:\n")
|
||||
for d in devices:
|
||||
try:
|
||||
client = TrezorClient(d)
|
||||
client = TrezorClient(d, ui=ClickUI)
|
||||
except IOError:
|
||||
sys.stderr.write("[-] <device is currently in use>\n")
|
||||
continue
|
||||
@ -72,7 +73,7 @@ def main():
|
||||
|
||||
devices = wait_for_devices()
|
||||
transport = choose_device(devices)
|
||||
client = TrezorClient(transport)
|
||||
client = TrezorClient(transport, ui=ClickUI)
|
||||
|
||||
rootdir = os.environ['encfs_root'] # Read "man encfs" for more
|
||||
passw_file = os.path.join(rootdir, 'password.dat')
|
||||
|
Loading…
Reference in New Issue
Block a user