Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit c86bc20

Browse files
authored
Merge pull request #75 from claranet/exclude_pycache
Ignore __pycache__
2 parents 729218f + 6632b89 commit c86bc20

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def list_files(top_path):
5151
results = []
5252

5353
for root, dirs, files in os.walk(top_path):
54+
if root.endswith("__pycache__"):
55+
continue
5456
for file_name in files:
5557
file_path = os.path.join(root, file_name)
5658
relative_path = os.path.relpath(file_path, top_path)

hash.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def list_files(top_path):
5656
results = []
5757

5858
for root, dirs, files in os.walk(top_path):
59+
if root.endswith("__pycache__"):
60+
continue
5961
for file_name in files:
6062
results.append(os.path.join(root, file_name))
6163

0 commit comments

Comments
 (0)