mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
core: modify profiling wrapper to work with frozen builds
This commit is contained in:
parent
e2f71a1acc
commit
e2fd2c35ff
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user