mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Fix tracker_icons to use the correct config directory, not the default
one
This commit is contained in:
parent
307099a874
commit
0ffc306d83
1 changed files with 3 additions and 2 deletions
|
@ -28,8 +28,9 @@ import threading
|
||||||
import gobject
|
import gobject
|
||||||
from urllib import urlopen
|
from urllib import urlopen
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
from deluge.common import get_default_config_dir, get_pixmap
|
from deluge.common import get_pixmap
|
||||||
import os
|
import os
|
||||||
|
import deluge.configmanager
|
||||||
|
|
||||||
#some servers don't have their favicon at the expected location
|
#some servers don't have their favicon at the expected location
|
||||||
RENAMES = {
|
RENAMES = {
|
||||||
|
@ -62,7 +63,7 @@ def fetch_url(url, valid_subtypes=None):
|
||||||
class TrackerIcons(object):
|
class TrackerIcons(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
#set image cache dir
|
#set image cache dir
|
||||||
self.image_dir = get_default_config_dir("icons")
|
self.image_dir = os.path.join(deluge.configmanager.get_config_dir(), "icons")
|
||||||
if not os.path.exists(self.image_dir):
|
if not os.path.exists(self.image_dir):
|
||||||
os.mkdir(self.image_dir)
|
os.mkdir(self.image_dir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue