SpiceBot/sopel_SpiceBot_Runtime_Commands/__init__.py
deathbybandaid 36aa57fe97 test
2022-02-10 13:13:24 -05:00

7 lines
241 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')]
for x in __all__:
import x