fix fucking useless dependence
This commit is contained in:
parent
0202cf2f7d
commit
d681ed8c76
1 changed files with 6 additions and 2 deletions
|
|
@ -24,7 +24,6 @@ from logging import debug, error, exception, warning
|
|||
import os
|
||||
import re
|
||||
import stat
|
||||
import xdg.IconTheme
|
||||
|
||||
from weboob.capabilities.cap import ICap
|
||||
from weboob.tools.backend import BaseBackend
|
||||
|
|
@ -71,7 +70,12 @@ class Backend(object):
|
|||
@property
|
||||
def icon_path(self):
|
||||
if self.klass.ICON is None:
|
||||
self.klass.ICON = xdg.IconTheme.getIconPath(self.klass.NAME)
|
||||
try:
|
||||
import xdg.IconTheme
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
self.klass.ICON = xdg.IconTheme.getIconPath(self.klass.NAME)
|
||||
return self.klass.ICON
|
||||
|
||||
def iter_caps(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue