Fixed: Themes missing when installing with pip3

pull/319/head
aristocratos 4 years ago
parent cc460666ff
commit ea9d72b6aa

@ -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'):

Loading…
Cancel
Save