summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-unrar/use_nix_unrar_path.patch
blob: 590315038abddda700aa15b6b7b5cf62d35b652a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/unrar/unrarlib.py b/unrar/unrarlib.py
index 06df081..22c1dde 100644
--- a/unrar/unrarlib.py
+++ b/unrar/unrarlib.py
@@ -31,7 +31,7 @@ __all__ = ["RAROpenArchiveDataEx", "RARHeaderDataEx", "RAROpenArchiveEx",
            "dostime_to_timetuple"]
 
 
-lib_path = os.environ.get('UNRAR_LIB_PATH', None)
+lib_path = "@unrar_lib_path@"
 
 # find and load unrar library
 unrarlib = None