1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

core: modify profiling wrapper to work with frozen builds

This commit is contained in:
matejcik 2020-01-17 16:21:12 +01:00
parent e2f71a1acc
commit e2fd2c35ff

View File

@ -1,10 +1,10 @@
import sys
import uos
from uio import open
sys.path.insert(0, uos.getenv("TREZOR_SRC"))
del uos
# We need to insert "" to sys.path so that the frozen build can import main from the
# frozen modules, and regular build can import it from current directory.
sys.path.insert(0, "")
class Coverage: