better config path settings for eventlogging-micah
This commit is contained in:
parent
cf6443432b
commit
40a1eacc49
|
@ -1,9 +1,8 @@
|
||||||
import gtk
|
import gtk
|
||||||
import xdg.BaseDirectory
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
CONFIG_DIR = xdg.BaseDirectory.save_config_path('deluge')
|
from deluge import common
|
||||||
|
|
||||||
class LogTabManager(object):
|
class LogTabManager(object):
|
||||||
def __init__(self, viewport, manager):
|
def __init__(self, viewport, manager):
|
||||||
|
@ -11,7 +10,7 @@ class LogTabManager(object):
|
||||||
self.viewport = viewport
|
self.viewport = viewport
|
||||||
self.vbox = None
|
self.vbox = None
|
||||||
self.manager = manager
|
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):
|
if not os.path.isdir(self.logdir):
|
||||||
os.mkdir(self.logdir)
|
os.mkdir(self.logdir)
|
||||||
self.labels = []
|
self.labels = []
|
||||||
|
|
Loading…
Reference in New Issue