[pip] Add themes & icons and make lookup work

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.
This commit is contained in:
Tobias Witek 2020-02-01 14:04:34 +01:00
parent 7ebf32fcc9
commit 3f38f0c3ab
2 changed files with 5 additions and 0 deletions

View file

@ -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/")),
]

View file

@ -42,10 +42,14 @@ EXTRAS_REQUIREMENTS_MAP = {
"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'))
]
)