1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

build_mocks fix2

This commit is contained in:
Dusan Klinec 2018-09-14 17:53:36 +02:00 committed by Jan Pochyla
parent 29ee5dc80c
commit ff387ba716

View File

@ -83,7 +83,7 @@ def build_module(mod_file, dest):
def build_directory(dir, dest):
print("Building mocks for", dir, "to", dest)
for pkg in sorted(os.listdir(dir)):
for pkg in sorted([x for x in os.listdir(dir) if os.path.isdir(os.path.join(dir, x))]):
for mod in sorted(os.listdir(os.path.join(dir, pkg))):
build_module(os.path.join(dir, pkg, mod), dest)