diff options
| author | 2019-06-21 21:25:42 +0200 | |
|---|---|---|
| committer | 2019-06-21 21:25:42 +0200 | |
| commit | 3eb2cf37d497ffc0cd2206c42e758f934e82e4e0 (patch) | |
| tree | 26462af462c08e959fbf37c9ec47281e19a125fb /bot/seasons/season.py | |
| parent | Create FUNDING.yml (diff) | |
| parent | Changed Path() arguments for readability (diff) | |
Merge pull request #227 from AvianAnalyst/master
Implemented .prideanthem command
Diffstat (limited to 'bot/seasons/season.py')
| -rw-r--r-- | bot/seasons/season.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/season.py b/bot/seasons/season.py index e6a262c8..cd2306a6 100644 --- a/bot/seasons/season.py +++ b/bot/seasons/season.py @@ -24,7 +24,7 @@ def get_seasons() -> List[str]: """Returns all the Season objects located in /bot/seasons/.""" seasons = [] - for module in pkgutil.iter_modules([Path("bot", "seasons")]): + for module in pkgutil.iter_modules([Path("bot/seasons")]): if module.ispkg: seasons.append(module.name) return seasons @@ -308,7 +308,7 @@ class SeasonBase: for ext_folder in {self.name, "evergreen"}: if ext_folder: log.info(f"Start loading extensions from seasons/{ext_folder}/") - path = Path("bot", "seasons", ext_folder) + path = Path("bot/seasons") / ext_folder for ext_name in [i[1] for i in pkgutil.iter_modules([path])]: extensions.append(f"bot.seasons.{ext_folder}.{ext_name}") |