summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2021-06-06 18:31:53 +0200
committeraristocratos <gnmjpl@gmail.com>2021-06-06 18:31:53 +0200
commitea9d72b6aade60ab66de3017a18d063f21cf1463 (patch)
tree828be2eabe3efa2b589a24cc79be6bdbc7b364a8
parentcc460666ff49e80afee582845011957faedfa556 (diff)
Fixed: Themes missing when installing with pip3
-rwxr-xr-xbpytop.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bpytop.py b/bpytop.py
index cbb1ae2..d016bba 100755
--- a/bpytop.py
+++ b/bpytop.py
@@ -254,6 +254,8 @@ THEME_DIR: str = ""
if os.path.isdir(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:
for td in ["/usr/local/", "/usr/", "/snap/bpytop/current/usr/"]:
if os.path.isdir(f'{td}share/bpytop/themes'):