better config path settings for eventlogging-micah

This commit is contained in:
Marcos Pinto 2007-08-09 02:19:50 +00:00
parent cf6443432b
commit 40a1eacc49
1 changed files with 2 additions and 3 deletions

View File

@ -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 = []