Skip to content

Commit 99fc1c0

Browse files
committed
Ignored hidden filenames created by macOS.
1 parent b29b64e commit 99fc1c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Macropad_Hotkeys/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def switch(self):
8181
files = os.listdir(MACRO_FOLDER)
8282
files.sort()
8383
for filename in files:
84-
if filename.endswith('.py'):
84+
if filename.endswith('.py') and not filename.startswith('._'):
8585
try:
8686
module = __import__(MACRO_FOLDER + '/' + filename[:-3])
8787
apps.append(App(module.app))

0 commit comments

Comments
 (0)