summary refs log blame commit diff
path: root/pkgs/tools/misc/file/python.patch
blob: 8ecbc9a81fdc7797e218b833427a8b76eef60341 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                   
--- file-5.11/python/magic.py	2011-09-22 18:57:41.000000000 +0200
+++ file-5.11/python/magic.py.1	2012-04-30 15:00:31.750213810 +0200
@@ -13,7 +13,7 @@
     Loads the shared library through ctypes and returns a library
     L{ctypes.CDLL} instance 
     """
-    return ctypes.cdll.LoadLibrary(find_library('magic'))
+    return ctypes.CDLL('libmagic.so')
 
 _libraries = {}
 _libraries['magic'] = _init()