mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
Fix tracker icons config dir
This commit is contained in:
parent
253b8a857f
commit
24ad257fdd
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ class TrackerIcons(object):
|
|||
ext, icon_data = self._fetch_icon(tracker_host)
|
||||
|
||||
if icon_data:
|
||||
filename = os.path.join(get_default_config_dir("icons"),"%s.%s" % (tracker_host, ext))
|
||||
filename = os.path.join(deluge.configmanager.get_config_dir(), "%s.%s" % (tracker_host, ext))
|
||||
f = open(filename,"wb")
|
||||
f.write(icon_data)
|
||||
f.close()
|
||||
|
@ -169,7 +169,7 @@ class TrackerIcons(object):
|
|||
if __name__ == "__main__":
|
||||
import time
|
||||
def del_old():
|
||||
filename = os.path.join(get_default_config_dir("icons"),"legaltorrents.com.ico")
|
||||
filename = os.path.join(deluge.configmanager.get_config_dir(),"legaltorrents.com.ico")
|
||||
if os.path.exists(filename):
|
||||
os.remove(filename)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue