mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
tools: update keyctl-proxy to work with new python-trezor
This commit is contained in:
parent
8e270fbabd
commit
c7a7537ffe
@ -14,12 +14,8 @@ indexmap = {
|
|||||||
|
|
||||||
def get_trezor():
|
def get_trezor():
|
||||||
from trezorlib.client import TrezorClient
|
from trezorlib.client import TrezorClient
|
||||||
from trezorlib.transport_hid import HidTransport
|
from trezorlib.transport import get_transport
|
||||||
devices = HidTransport.enumerate()
|
return TrezorClient(get_transport())
|
||||||
if len(devices) > 0:
|
|
||||||
return TrezorClient(devices[0])
|
|
||||||
else:
|
|
||||||
raise Exception('No TREZOR found')
|
|
||||||
|
|
||||||
|
|
||||||
def get_path(index):
|
def get_path(index):
|
||||||
|
Loading…
Reference in New Issue
Block a user