aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-21 16:08:28 +0100
committerGravatar kwzrd <[email protected]>2020-03-21 16:09:20 +0100
commit4687bd4fb3348db9b151b3c8178631153a7b28e5 (patch)
tree3bdafc40a75b36a33cec5b7278a8e3b6330efc4d /bot/constants.py
parentDeseasonify: improve `get_seasons` convenience function (diff)
Deseasonify: simplify `get_extensions` convenience function
This is a little tricky, as we only want to walk the modules in each season's package. The pkgutil module provides a convenient function called `walk_packages` which can walk recursively, but this isn't desirable as not all modules are cogs - for example, the modules nested under `evergreen.snakes` are only helpers, and the `setup` function is instead present in the package's `__init__.py`. As we no longer have modules directly in the seasons package, we can remove the `ispkg` check.
Diffstat (limited to 'bot/constants.py')
0 files changed, 0 insertions, 0 deletions