jezdez / envdir

A Python port of daemontools' envdir.
https://envdir.readthedocs.io/
MIT License
229 stars 28 forks source link

envdir should ignore hidden files (currently crashes) #79

Open mij opened 2 months ago

mij commented 2 months ago

Envdir should omit loading hidden files (e.g. .MY_VARIABLE.swp) into the environment.

Although DJB forgot to cover this case, there are 2 reasons for this:

I'm willing to provide a pull request for this. I'd simply exclude hidden files via envdir.env.isenvvar() and provide the respective test.

Before putting in the time to do so, please confirm whether you welcome this and will merge it.