From ff387ba71679951a89094f88e9f8363a4e3169db Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Fri, 14 Sep 2018 17:53:36 +0200 Subject: [PATCH] build_mocks fix2 --- tools/build_mocks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_mocks b/tools/build_mocks index 8d8be8371a..1fb8fb711e 100755 --- a/tools/build_mocks +++ b/tools/build_mocks @@ -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)