From 40a1eacc498f489742e3b967d4f9d288af59edf5 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 9 Aug 2007 02:19:50 +0000 Subject: [PATCH] better config path settings for eventlogging-micah --- plugins/EventLogging/tab_log.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/EventLogging/tab_log.py b/plugins/EventLogging/tab_log.py index 3970133bd..85b30f7a3 100644 --- a/plugins/EventLogging/tab_log.py +++ b/plugins/EventLogging/tab_log.py @@ -1,9 +1,8 @@ import gtk -import xdg.BaseDirectory import os import time -CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge') +from deluge import common class LogTabManager(object): def __init__(self, viewport, manager): @@ -11,7 +10,7 @@ class LogTabManager(object): self.viewport = viewport self.vbox = None self.manager = manager - self.logdir = os.path.join(CONFIG_DIR, 'logs') + self.logdir = os.path.join(common.CONFIG_DIR, 'logs') if not os.path.isdir(self.logdir): os.mkdir(self.logdir) self.labels = []