2012-11-15 20:05:57 +00:00
|
|
|
import sys
|
|
|
|
sys.path = ['../',] + sys.path
|
|
|
|
|
2013-09-13 03:28:56 +00:00
|
|
|
from trezorlib.transport_pipe import PipeTransport
|
|
|
|
from trezorlib.transport_hid import HidTransport
|
|
|
|
from trezorlib.transport_socket import SocketTransportClient
|
2012-11-15 20:05:57 +00:00
|
|
|
|
2013-10-08 18:34:38 +00:00
|
|
|
use_pipe = True
|
|
|
|
if use_pipe:
|
2013-04-15 17:57:36 +00:00
|
|
|
|
2013-10-08 18:34:38 +00:00
|
|
|
TRANSPORT = PipeTransport
|
|
|
|
TRANSPORT_ARGS = ('../../trezor-emu/pipe.trezor', False)
|
2013-04-15 17:57:36 +00:00
|
|
|
|
2013-10-08 18:34:38 +00:00
|
|
|
DEBUG_TRANSPORT = PipeTransport
|
|
|
|
DEBUG_TRANSPORT_ARGS = ('../../trezor-emu/pipe.trezor_debug', False)
|
2012-11-15 20:05:57 +00:00
|
|
|
|
2013-10-08 18:34:38 +00:00
|
|
|
else:
|
|
|
|
|
|
|
|
TRANSPORT = HidTransport
|
|
|
|
TRANSPORT_ARGS = ('0x10c4:0xea80:000868D3', False)
|
|
|
|
|
|
|
|
DEBUG_TRANSPORT = SocketTransportClient
|
|
|
|
DEBUG_TRANSPORT_ARGS = ('trezor.bo:2000', False)
|
2013-04-15 17:57:36 +00:00
|
|
|
|
|
|
|
#DEBUG_TRANSPORT = SocketTransportClient
|
|
|
|
#DEBUG_TRANSPORT_ARGS = ('trezor.dyn:2000', False)
|