1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Author: Daniel Baumann <daniel@debian.org>, Mathias Behrle <mathiasb@m9s.biz>
Description: Adjust icon search path to policy conforming place.
--- a/tryton/config.py
+++ b/tryton/config.py
@@ -222,7 +222,7 @@
if not isinstance(CURRENT_DIR, str):
CURRENT_DIR = str(CURRENT_DIR, sys.getfilesystemencoding())
-PIXMAPS_DIR = os.path.join(CURRENT_DIR, 'data', 'pixmaps', 'tryton')
+PIXMAPS_DIR = os.path.join(sys.prefix, 'share', 'icons', 'tryton')
if not os.path.isdir(PIXMAPS_DIR):
try:
import importlib.resources
|