mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
build_mocks fix2
This commit is contained in:
parent
29ee5dc80c
commit
ff387ba716
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user