LedFx/ledfx/effects/effectlets/__init__.py

10 lines
190 B
Python

import fnmatch
import os
EFFECTLET_LIST = []
files = os.listdir(os.path.dirname(__file__))
for entry in files:
if fnmatch.fnmatch(entry, "*.npy"):
EFFECTLET_LIST.append(entry)