SpiceBot/sopel_SpiceBot_Runtime_Commands/__init__.py
deathbybandaid 36bce6d433 test
2022-02-10 13:11:14 -05:00

5 lines
210 B
Python

from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]