From 635b2ca308f5e0ddc379c4800b2bb2ed229ca855 Mon Sep 17 00:00:00 2001 From: wuzewu Date: Fri, 17 Jan 2020 10:48:38 +0800 Subject: [PATCH] Ignore hidden files when packaging --- paddlehub/module/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddlehub/module/module.py b/paddlehub/module/module.py index e64b76f2..44718725 100644 --- a/paddlehub/module/module.py +++ b/paddlehub/module/module.py @@ -105,6 +105,8 @@ def create_module(directory, name, author, email, module_type, summary, files = [] for dirname, _, subfiles in os.walk(module_dir): for file in subfiles: + # if file.startswith("."): + # continue files.append(os.path.join(dirname, file)) total_length = len(files) -- GitLab