about summary refs log tree commit diff
path: root/pkgs/applications/office/bookletimposer/configdir.patch
blob: 5f7133f79a10c0a678934bc6d8a5678a6c1e058f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/bookletimposer/config.py b/lib/bookletimposer/config.py
index 8f107a4..d4d335d 100644
--- a/lib/bookletimposer/config.py
+++ b/lib/bookletimposer/config.py
@@ -45,14 +41,7 @@ def debug(msg):
 
 
 def get_sharedir():
-    if debug_enabled and os.path.exists(os.path.join("/", "usr", "local",
-                                                     "share",
-                                                     "bookletimposer")):
-        return os.path.join("/", "usr", "local", "share")
-    elif os.path.exists(os.path.join("/", "usr", "share", "bookletimposer")):
-        return os.path.join("/", "usr", "share")
-    else:
-        return ""
+    return os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "share"))
 
 
 def get_datadir():