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.
I believe the intention here is to skip directories named
__pycache__
and that begin with '.' but in that case, this incorrectly usesroot[0]
instead of the first character of the name of the last path element, and was causing strange behaviour when launching withappdaemon -c .
, which I think is probably a common enough first experience when attempting local development.P.S. Thanks for building this package!