mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +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):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user