Reverse extension sequence

main
Bob Mottram 2020-07-25 18:56:06 +01:00
parent aaefa01adf
commit d5b9bad0cb
1 changed files with 2 additions and 2 deletions

View File

@ -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