mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 10:58:21 +00:00
fix __import__ call
This commit is contained in:
parent
cc35a00639
commit
299c616d1b
@ -9,5 +9,5 @@ def get_protobuf_type_name(wire_type):
|
|||||||
|
|
||||||
def get_protobuf_type(wire_type):
|
def get_protobuf_type(wire_type):
|
||||||
name = get_protobuf_type_name(wire_type)
|
name = get_protobuf_type_name(wire_type)
|
||||||
module = __import__('.%s' % name, None, None, (name,), 1)
|
module = __import__('trezor.messages.%s' % name, None, None, (name,) , 0)
|
||||||
return getattr(module, name)
|
return getattr(module, name)
|
||||||
|
Loading…
Reference in New Issue
Block a user