Customisable desktop client banner

main
Bob Mottram 2021-03-15 14:36:03 +00:00
parent 0a7f214163
commit 42e11d3b83
1 changed files with 5 additions and 2 deletions

View File

@ -45,9 +45,12 @@ def _clearScreen() -> None:
def _showDesktopBanner() -> None:
"""Shows the banner at the top
"""
bannerFilename = 'theme/starlight/banner.txt'
bannerFilename = 'banner.txt'
if not os.path.isfile(bannerFilename):
return
bannerTheme = 'starlight'
bannerFilename = 'theme/' + bannerTheme + '/banner.txt'
if not os.path.isfile(bannerFilename):
return
with open(bannerFilename, 'r') as bannerFile:
banner = bannerFile.read()
if banner: