Skip to content

Commit 5ce06d1

Browse files
authored
Merge pull request #2149 from hvtuananh/mac_hidden_filenames
Ignored hidden filenames created by macOS.
2 parents 25567d6 + 99fc1c0 commit 5ce06d1

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)