pagekite/Mailpile — pull request #184 by shartte (2013-09-18 19:21:33+00:00)
Title: Mailpile should read HTML templates not from the current working directo...

...ry but rather from the directory within the source-tree if possible.

This fixes out-of-the-box running of Mailpile on Windows for me. I started it from the scripts\ directory accidentally and it was unable to find its HTML templates because of this (the WWW frontend simply printed JSON, and no error message, making it very hard to figure out there even was a working UI!).

This patch will try as a last fallback to read the templates relative to the directory where the mailpile python files are.
If MAILPILE_HOME is set, that setting still takes precedence.