diff options
author | Artem Skoretskiy <artem.skoretskiy@gmail.com> | 2017-01-05 00:40:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 00:40:45 +0100 |
commit | ee09e35780c8d898bfb8913e847eff5eac38ffd2 (patch) | |
tree | 0040b244781fde237f3da5fda9545c970fb980f2 | |
parent | a6f9987fcd628a83b89e66fb627b60bdb56ff788 (diff) | |
download | python-magic-ee09e35780c8d898bfb8913e847eff5eac38ffd2.tar.gz |
Fixed type for DLL search on Linux platform
Provide correct list of strings instead of string
-rw-r--r-- | magic.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ if not libmagic or not libmagic._name: glob.glob('/usr/local/Cellar/libmagic/*/lib/libmagic.dylib'), 'win32': windows_dlls, 'cygwin': windows_dlls, - 'linux': 'libmagic.so.1', # fallback for some Linuxes (e.g. Alpine) where library search does not work + 'linux': ['libmagic.so.1'], # fallback for some Linuxes (e.g. Alpine) where library search does not work } for dll in platform_to_lib.get(sys.platform, []): try: |