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
@@ -27,6 +27,7 @@
 
 import os
 import sys
+import sysconfig
 import ctypes
 import struct
 from ctypes import *
@@ -53,6 +54,8 @@
         returns the ctypes lib object
     '''
     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.
