mirror of
https://github.com/romanz/amodem.git
synced 2026-02-24 16:18:12 +08:00
Allow looking TREZOR by path prefix
This commit is contained in:
@@ -25,7 +25,7 @@ def find_device():
|
||||
If unset, picks first connected device.
|
||||
"""
|
||||
try:
|
||||
return get_transport(os.environ.get("TREZOR_PATH"))
|
||||
return get_transport(os.environ.get("TREZOR_PATH"), prefix_search=True)
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
log.debug("Failed to find a Trezor device: %s", e)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user