AppDaemon / appdaemon

:page_facing_up: Python Apps for Home Automation
Other
832 stars 417 forks source link

Fix bug in path checking. #1963

Closed dwf closed 2 weeks ago

dwf commented 6 months ago

I believe the intention here is to skip directories named __pycache__ and that begin with '.' but in that case, this incorrectly uses root[0] instead of the first character of the name of the last path element, and was causing strange behaviour when launching with appdaemon -c ., which I think is probably a common enough first experience when attempting local development.

P.S. Thanks for building this package!