From 6632b895bd7ee86316787646289d16f55f517763 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Mon, 26 Apr 2021 15:40:19 +0200 Subject: [PATCH] Ignore __pycache__ --- build.py | 2 ++ hash.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build.py b/build.py index afa3392..ee6a7e1 100644 --- a/build.py +++ b/build.py @@ -51,6 +51,8 @@ def list_files(top_path): results = [] for root, dirs, files in os.walk(top_path): + if root.endswith("__pycache__"): + continue for file_name in files: file_path = os.path.join(root, file_name) relative_path = os.path.relpath(file_path, top_path) diff --git a/hash.py b/hash.py index 243f03e..7be7282 100644 --- a/hash.py +++ b/hash.py @@ -56,6 +56,8 @@ def list_files(top_path): results = [] for root, dirs, files in os.walk(top_path): + if root.endswith("__pycache__"): + continue for file_name in files: results.append(os.path.join(root, file_name))