depot/third_party/nixpkgs/pkgs/applications/office/bookletimposer/configdir.patch
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

20 lines
789 B
Diff

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():