nixpkgs/pkgs/applications/office/bookletimposer/configdir.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
789 B
Diff
Raw Normal View History

2022-06-04 17:15:48 +00:00
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():