From 8f8c2b83bce3d4dd2fee957889655c739da5776e Mon Sep 17 00:00:00 2001 From: fsmosca Date: Mon, 19 Apr 2021 08:51:38 +0800 Subject: [PATCH] Don't include .DS_Store files when searching engine file An improvement mentioned in issue #35. --- python_easy_chess_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_easy_chess_gui.py b/python_easy_chess_gui.py index 005863d..7b95c13 100644 --- a/python_easy_chess_gui.py +++ b/python_easy_chess_gui.py @@ -61,7 +61,7 @@ APP_NAME = 'Python Easy Chess GUI' -APP_VERSION = 'v1.12' +APP_VERSION = 'v1.13' BOX_TITLE = '{} {}'.format(APP_NAME, APP_VERSION) @@ -2410,6 +2410,7 @@ def get_engines(self): files = os.listdir(engine_path) for file in files: if not file.endswith('.gz') and not file.endswith('.dll') \ + and not file.endswith('.DS_Store') \ and not file.endswith('.bin') \ and not file.endswith('.dat'): engine_list.append(file)