1
0
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:
Pavol Rusnak 2016-09-26 20:28:27 +02:00
parent cc35a00639
commit 299c616d1b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)