From 1b62ca2c3093697254cbb95ceb717dd9c068a408 Mon Sep 17 00:00:00 2001 From: "Mike A. Trethewey" Date: Wed, 26 Feb 2020 03:21:35 -0800 Subject: [PATCH] Ignore python scripts --- resources/ci/common/common.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/ci/common/common.py b/resources/ci/common/common.py index 9126fb24..8e68851d 100644 --- a/resources/ci/common/common.py +++ b/resources/ci/common/common.py @@ -118,12 +118,13 @@ def find_binary(listdir): executable = stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH for filename in os.listdir(listdir): if os.path.isfile(filename): - st = os.stat(filename) - mode = st.st_mode - big = st.st_size > (10 * 1024 * 1024) # 10MB - if (mode & executable) or big: - if "GUI" in filename or "Gui" in filename or "DungeonRandomizer" in filename: - BUILD_FILENAMES.append(filename) + if os.path.splitext(filename)[1] != ".py": + st = os.stat(filename) + mode = st.st_mode + big = st.st_size > (10 * 1024 * 1024) # 10MB + if (mode & executable) or big: + if "GUI" in filename or "Gui" in filename or "DungeonRandomizer" in filename: + BUILD_FILENAMES.append(filename) return BUILD_FILENAMES if __name__ == "__main__":