robertwayne / cogwatch

Hot-reloading for discord.py-based command files.
MIT License
47 stars 6 forks source link

Reloading fails when filenames have uppercase letters #14

Closed SolsticeShard closed 2 years ago

SolsticeShard commented 2 years ago

Hi, super awesome project! Was experimenting with this, and I found that I would always hit an extension reload error if any of my cog file names had an upper case letter as it looks like the reloading logic forces everything to be lower case. Not blocking as I can make sure all of my cog file names are lower but it took a decent bit of digging around to find that was the issue.

robertwayne commented 2 years ago

Thanks for mentioning this.

This should be fixed in the next release. The check was not actually doing anything - holdover code from a prior implementation I believe!

You can test the next build with pip install cogwatch==3.0.0a0. It should "just work". :)