This commit is contained in:
mathieui 2012-03-28 23:08:31 +02:00
parent b1cbbc62c8
commit 791bcf19b1

View file

@ -2,9 +2,12 @@ import imp
import os import os
import sys import sys
import tabs import tabs
import logging
from config import config from config import config
from gettext import gettext as _ from gettext import gettext as _
log = logging.getLogger(__name__)
plugins_dir = config.get('plugins_dir', '') plugins_dir = config.get('plugins_dir', '')
plugins_dir = plugins_dir or\ plugins_dir = plugins_dir or\
os.path.join(os.environ.get('XDG_DATA_HOME') or\ os.path.join(os.environ.get('XDG_DATA_HOME') or\
@ -56,7 +59,8 @@ class PluginManager(object):
imp.release_lock() imp.release_lock()
except Exception as e: except Exception as e:
import traceback import traceback
self.core.information(_("Could not load plugin: ") + traceback.format_exc(), 'Error') log.debug("Could not load plugin: \n%s", traceback.format_exc())
self.core.information("Could not load plugin: %s" % e, 'Error')
return return
finally: finally:
if imp.lock_held(): if imp.lock_held():