27 lines
719 B
Python
27 lines
719 B
Python
import sys
|
|
sys.path = ['../',] + sys.path
|
|
|
|
from trezorlib.transport_pipe import PipeTransport
|
|
from trezorlib.transport_hid import HidTransport
|
|
from trezorlib.transport_socket import SocketTransportClient
|
|
|
|
use_pipe = True
|
|
if use_pipe:
|
|
|
|
TRANSPORT = PipeTransport
|
|
TRANSPORT_ARGS = ('../../trezor-emu/pipe.trezor', False)
|
|
|
|
DEBUG_TRANSPORT = PipeTransport
|
|
DEBUG_TRANSPORT_ARGS = ('../../trezor-emu/pipe.trezor_debug', False)
|
|
|
|
else:
|
|
|
|
TRANSPORT = HidTransport
|
|
TRANSPORT_ARGS = ('0x10c4:0xea80:000868D3', False)
|
|
|
|
DEBUG_TRANSPORT = SocketTransportClient
|
|
DEBUG_TRANSPORT_ARGS = ('trezor.bo:2000', False)
|
|
|
|
#DEBUG_TRANSPORT = SocketTransportClient
|
|
#DEBUG_TRANSPORT_ARGS = ('trezor.dyn:2000', False)
|