1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-25 15:58:08 +00:00

remove src/lib

This commit is contained in:
Jan Pochyla 2017-08-14 11:09:47 +02:00
parent d2781d030d
commit 552444c856
7 changed files with 6 additions and 26 deletions

View File

@ -2,4 +2,4 @@
init-hook='sys.path.append("mocks"); sys.path.append("src/lib")'
[MESSAGES CONTROL]
disable=C0111,C0103,W0603,W0703
disable=C0111,C0103,C0413,W0603,W0703

View File

View File

@ -1,31 +1,13 @@
import gc
import micropython
import sys
sys.path.append('lib')
from trezor import config
from trezor import loop
from trezor import workflow
from trezor import log
config.init()
log.level = log.DEBUG
def perf_info():
prev = 0
peak = 0
sleep = loop.sleep(100000)
while True:
gc.collect()
used = gc.mem_alloc()
if used != prev:
prev = used
peak = max(peak, used)
print('peak %d, used %d' % (peak, used))
yield sleep
def run(default_workflow):
# loop.schedule_task(perf_info())
workflow.start_default(default_workflow)
loop.run_forever()

View File

@ -1,8 +1,6 @@
import sys
sys.path.append('../src')
sys.path.append('../src/lib')
import unittest
from ubinascii import hexlify, unhexlify
import unittest