forked from indymedia/epicyon
Reverse extension sequence
parent
aaefa01adf
commit
d5b9bad0cb
4
theme.py
4
theme.py
|
@ -626,7 +626,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
|
||||||
|
|
||||||
backgroundNames = ('login', 'shares', 'delete', 'follow',
|
backgroundNames = ('login', 'shares', 'delete', 'follow',
|
||||||
'options', 'block', 'search', 'calendar')
|
'options', 'block', 'search', 'calendar')
|
||||||
extensions = ('png', 'jpg', 'gif')
|
extensions = ('gif', 'jpg', 'png')
|
||||||
|
|
||||||
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
||||||
for acct in dirs:
|
for acct in dirs:
|
||||||
|
@ -653,7 +653,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
|
||||||
copyfile(backgroundImageFilename,
|
copyfile(backgroundImageFilename,
|
||||||
baseDir + '/accounts/' + backgroundType +
|
baseDir + '/accounts/' + backgroundType +
|
||||||
'-background.' + ext)
|
'-background.' + ext)
|
||||||
break
|
continue
|
||||||
except BaseException:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
# background image was not found
|
# background image was not found
|
||||||
|
|
Loading…
Reference in New Issue