Fixed: Themes missing when installing with pip3

pull/319/head
aristocratos 2021-06-06 18:31:53 +02:00
parent cc460666ff
commit ea9d72b6aa
1 changed files with 2 additions and 0 deletions

View File

@ -254,6 +254,8 @@ THEME_DIR: str = ""
if os.path.isdir(f'{os.path.dirname(__file__)}/bpytop-themes'): if os.path.isdir(f'{os.path.dirname(__file__)}/bpytop-themes'):
THEME_DIR = f'{os.path.dirname(__file__)}/bpytop-themes' THEME_DIR = f'{os.path.dirname(__file__)}/bpytop-themes'
elif os.path.isdir(f'{os.path.dirname(__file__)}/themes'):
THEME_DIR = f'{os.path.dirname(__file__)}/themes'
else: else:
for td in ["/usr/local/", "/usr/", "/snap/bpytop/current/usr/"]: for td in ["/usr/local/", "/usr/", "/snap/bpytop/current/usr/"]:
if os.path.isdir(f'{td}share/bpytop/themes'): if os.path.isdir(f'{td}share/bpytop/themes'):