Skip to content

Commit

Permalink
[pip] Add themes & icons and make lookup work
Browse files Browse the repository at this point in the history
Really ugly hack (extending the lookup logic in theme.py) to make pip
themes work, but for now, I am unable to come up with anything better.
  • Loading branch information
tobi-wan-kenobi committed Feb 1, 2020
1 parent 7ebf32f commit 3f38f0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions bumblebee/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def theme_path():
"""Return the path of the theme directory"""
return [
os.path.dirname("{}/../themes/".format(os.path.dirname(os.path.realpath(__file__)))),
os.path.dirname("{}/../../../../share/bumblebee-status/themes/".format(os.path.dirname(os.path.realpath(__file__)))),
os.path.dirname(os.path.expanduser("~/.config/bumblebee-status/themes/")),
]

Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ def read_module(filename):
"yubikey": read_module("yubikey"),
}

import glob
setup(
install_requires=INSTALL_REQS,
extras_require=EXTRAS_REQUIREMENTS_MAP,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
zip_safe=False,
data_files=[('share/bumblebee-status/themes', glob.glob('themes/*.json')),
('share/bumblebee-status/themes/icons', glob.glob('themes/icons/*.json'))
]
)

0 comments on commit 3f38f0c

Please sign in to comment.