Skip to content

Commit

Permalink
Don't include .DS_Store files when searching engine file
Browse files Browse the repository at this point in the history
An improvement mentioned in issue #35.
  • Loading branch information
fsmosca committed Apr 19, 2021
1 parent c6e7bd7 commit 8f8c2b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python_easy_chess_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8f8c2b8

Please sign in to comment.