mirror of https://gitlab.com/bashrc2/epicyon
Test that image exists before returning themed version
parent
dc47b9015f
commit
8e596603d0
|
@ -484,9 +484,11 @@ def getImageFile(baseDir: str, name: str, directory: str,
|
||||||
bannerFile = ''
|
bannerFile = ''
|
||||||
bannerFilename = ''
|
bannerFilename = ''
|
||||||
for ext in bannerExtensions:
|
for ext in bannerExtensions:
|
||||||
bannerFile = name + '_' + theme + '.' + ext
|
bannerFile = name + '.' + ext
|
||||||
bannerFilename = directory + '/' + bannerFile
|
bannerFilename = directory + '/' + bannerFile
|
||||||
if os.path.isfile(bannerFilename):
|
if os.path.isfile(bannerFilename):
|
||||||
|
bannerFile = name + '_' + theme + '.' + ext
|
||||||
|
bannerFilename = directory + '/' + bannerFile
|
||||||
break
|
break
|
||||||
return bannerFile, bannerFilename
|
return bannerFile, bannerFilename
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue