Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / office / bookletimposer / configdir.patch
blob5f7133f79a10c0a678934bc6d8a5678a6c1e058f
1 diff --git a/lib/bookletimposer/config.py b/lib/bookletimposer/config.py
2 index 8f107a4..d4d335d 100644
3 --- a/lib/bookletimposer/config.py
4 +++ b/lib/bookletimposer/config.py
5 @@ -45,14 +41,7 @@ def debug(msg):
8 def get_sharedir():
9 - if debug_enabled and os.path.exists(os.path.join("/", "usr", "local",
10 - "share",
11 - "bookletimposer")):
12 - return os.path.join("/", "usr", "local", "share")
13 - elif os.path.exists(os.path.join("/", "usr", "share", "bookletimposer")):
14 - return os.path.join("/", "usr", "share")
15 - else:
16 - return ""
17 + return os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "share"))
20 def get_datadir():