mirror of https://gitlab.com/bashrc2/epicyon
Replace slashes
parent
fd86985a09
commit
3ba7318220
8
theme.py
8
theme.py
|
@ -1017,9 +1017,11 @@ def setNewsAvatar(baseDir: str, name: str,
|
||||||
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
|
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
|
||||||
if not os.path.isfile(newFilename):
|
if not os.path.isfile(newFilename):
|
||||||
return
|
return
|
||||||
filename = baseDir + 'cache/avatars/' + \
|
avatarFilename = \
|
||||||
httpPrefix + '://' + domainFull + '/users/' + nickname + \
|
httpPrefix + '://' + domainFull + '/users/' + nickname + '.png'
|
||||||
'.png'
|
avatarFilename = avatarFilename.replace('/', '-')
|
||||||
|
filename = baseDir + 'cache/avatars/' + avatarFilename
|
||||||
|
|
||||||
if os.path.isfile(filename):
|
if os.path.isfile(filename):
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
if os.path.isdir(baseDir + 'cache/avatars'):
|
if os.path.isdir(baseDir + 'cache/avatars'):
|
||||||
|
|
Loading…
Reference in New Issue