mirror of https://gitlab.com/bashrc2/epicyon
Check that directory exists
parent
97119e05c5
commit
b889c8dfdd
9
theme.py
9
theme.py
|
@ -615,10 +615,11 @@ def setTheme(baseDir: str, name: str, domain: str) -> bool:
|
||||||
# set the news avatar
|
# set the news avatar
|
||||||
newsAvatarThemeFilename = \
|
newsAvatarThemeFilename = \
|
||||||
baseDir + '/theme/' + name + '/icons/avatar_news.png'
|
baseDir + '/theme/' + name + '/icons/avatar_news.png'
|
||||||
if os.path.isfile(newsAvatarThemeFilename):
|
if os.path.isdir(baseDir + '/accounts/news@' + domain):
|
||||||
newsAvatarFilename = \
|
if os.path.isfile(newsAvatarThemeFilename):
|
||||||
baseDir + '/accounts/news@' + domain + '/avatar.png'
|
newsAvatarFilename = \
|
||||||
copyfile(newsAvatarThemeFilename, newsAvatarFilename)
|
baseDir + '/accounts/news@' + domain + '/avatar.png'
|
||||||
|
copyfile(newsAvatarThemeFilename, newsAvatarFilename)
|
||||||
|
|
||||||
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
grayscaleFilename = baseDir + '/accounts/.grayscale'
|
||||||
if os.path.isfile(grayscaleFilename):
|
if os.path.isfile(grayscaleFilename):
|
||||||
|
|
Loading…
Reference in New Issue