mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 07:50:57 +00:00
core: avoid circular import in sd_salt
This commit is contained in:
parent
0511cc8b8c
commit
ed190c772c
@ -8,7 +8,6 @@ from trezor.ui.text import Text
|
|||||||
from trezor.utils import consteq
|
from trezor.utils import consteq
|
||||||
|
|
||||||
from apps.common.confirm import confirm
|
from apps.common.confirm import confirm
|
||||||
from apps.common.storage.device import get_device_id
|
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
@ -78,6 +77,8 @@ async def _write_failed_dialog(ctx: Optional[wire.Context]) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def _get_device_dir() -> str:
|
def _get_device_dir() -> str:
|
||||||
|
from apps.common.storage.device import get_device_id
|
||||||
|
|
||||||
return "/trezor/device_%s" % get_device_id().lower()
|
return "/trezor/device_%s" % get_device_id().lower()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user