Description: Help the Python wrapper find libtcod.so
 This patch adds /usr/lib/<MULTIARCH>/ to the shared library search
 path in _get_cdll() in python/libtcodpy/__init__.py.
Author: Fabian Wolff <fabi.wolff@arcor.de>
Forwarded: no
Last-Update: 2016-10-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/python/libtcodpy/__init__.py
+++ b/python/libtcodpy/__init__.py
@@ -29,6 +29,7 @@
 from __future__ import print_function
 import os
 import sys
+import sysconfig
 import ctypes
 import struct
 import warnings
@@ -139,6 +140,8 @@
     pythonExeArchitecture = get_pe_architecture(pythonExePath)
 
     pathsToTry = []
+    # 0. Debian patch: Look for libname in /usr/lib/<MULTIARCH>/.
+    pathsToTry.append(os.path.join("/usr/lib", sysconfig.get_config_var('MULTIARCH'), libname))
     # 1. Try the directory this script is located in.
     pathsToTry.append(os.path.join(__path__[0], libname))
     # 2. Try the directory of the command-line script.
