pull/422/merge
Clemens Lang 2025-06-01 22:58:10 +02:00 committed by GitHub
commit d4f8c5a6ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -256,7 +256,12 @@ if os.path.isdir(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:
for td in ["/usr/local/", "/usr/", "/snap/bpytop/current/usr/"]:
for td in [
os.path.dirname(os.path.dirname(__file__)).rstrip("/") + "/",
"/usr/local/",
"/usr/",
"/snap/bpytop/current/usr/"
]:
if os.path.isdir(f'{td}share/bpytop/themes'):
THEME_DIR = f'{td}share/bpytop/themes'
break