`configmanager` needs to be imported at a latter stage at least for the gtk frontend.

This commit is contained in:
Pedro Algarvio 2010-12-06 11:45:17 +00:00
parent 3b00a7de59
commit b7bc1fdb1d
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ import os
import logging import logging
import inspect import inspect
import pkg_resources import pkg_resources
from deluge import configmanager, common, component from deluge import common, component
from twisted.internet import defer from twisted.internet import defer
from twisted.python.log import PythonLoggingObserver from twisted.python.log import PythonLoggingObserver
@ -191,6 +191,7 @@ def tweak_logging_levels():
Remember, one rule per line and this WILL override the setting passed from Remember, one rule per line and this WILL override the setting passed from
the command line. the command line.
""" """
from deluge import configmanager
logging_config_file = os.path.join(configmanager.get_config_dir(), logging_config_file = os.path.join(configmanager.get_config_dir(),
'logging.conf') 'logging.conf')
if not os.path.isfile(logging_config_file): if not os.path.isfile(logging_config_file):