mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-09 07:13:03 +00:00
21 lines
789 B
Diff
21 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():
|