summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-09-06 23:20:18 +0000
committerPatrick Maia <pmaia@thoughtworks.com>2014-09-06 23:20:18 +0000
commitbbf12cbf48d9143a6920a80193ff29fc42cce646 (patch)
tree9c74c4b71a56e891523ddfe971662c5da0534265 /service
parent0c7ac76b4e1c568602fbc75194e39ebf5b676303 (diff)
#51 - sets the path to tag index file in the right way
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/adapter/pixelated_mailbox.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/pixelated/adapter/pixelated_mailbox.py b/service/pixelated/adapter/pixelated_mailbox.py
index 3424ddd7..ecd83d6e 100644
--- a/service/pixelated/adapter/pixelated_mailbox.py
+++ b/service/pixelated/adapter/pixelated_mailbox.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
+import os
+
from pixelated.adapter.pixelated_mail import PixelatedMail
from pixelated.adapter.tag import Tag
from pixelated.adapter.tag_index import TagIndex
@@ -66,4 +68,5 @@ class PixelatedMailbox:
@classmethod
def create(cls, account, mailbox_name='INBOX'):
- return PixelatedMailbox(account.getMailbox(mailbox_name), '~/.pixelated_index')
+ db_path = os.path.join(os.environ['HOME'], '.pixelated_index')
+ return PixelatedMailbox(account.getMailbox(mailbox_name), db_path)