1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

core: avoid circular import in sd_salt

This commit is contained in:
matejcik 2019-10-21 13:53:00 +02:00 committed by Tomas Susanka
parent 0511cc8b8c
commit ed190c772c

View File

@ -8,7 +8,6 @@ from trezor.ui.text import Text
from trezor.utils import consteq
from apps.common.confirm import confirm
from apps.common.storage.device import get_device_id
if False:
from typing import Optional
@ -78,6 +77,8 @@ async def _write_failed_dialog(ctx: Optional[wire.Context]) -> None:
def _get_device_dir() -> str:
from apps.common.storage.device import get_device_id
return "/trezor/device_%s" % get_device_id().lower()