# PyAssimp3: add dynlib to dll search path.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1093 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/3/head
aramis_acg 2011-11-30 13:15:12 +00:00
parent 3d00f36faf
commit 3548127f02
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Some fancy helper functions.
"""
import os
import os, sys
import ctypes
from . import structs
import operator
@ -19,6 +19,9 @@ additional_dirs, ext_whitelist = [],[]
if os.name=='posix':
additional_dirs.append('/usr/local/lib/')
if sys.platform.lower() == 'darwin':
ext_whitelist.append('.dylib')
# note - this won't catch libassimp.so.N.n, but
# currently there's always a symlink called
# libassimp.so in /usr/local/lib.