From f1e43f560ab7685d7878dbaf316e16a55710fa92 Mon Sep 17 00:00:00 2001 From: Michael Dawson-Haggerty Date: Tue, 12 Nov 2013 22:06:42 -0500 Subject: [PATCH] added additional search paths for dll on windows --- port/PyAssimp/pyassimp/helper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/port/PyAssimp/pyassimp/helper.py b/port/PyAssimp/pyassimp/helper.py index 2e1b41954..1cff1b0c8 100644 --- a/port/PyAssimp/pyassimp/helper.py +++ b/port/PyAssimp/pyassimp/helper.py @@ -30,7 +30,11 @@ if os.name=='posix': elif os.name=='nt': ext_whitelist.append('.dll') - + path_dirs = os.environ['PATH'].split(';') + for dir_candidate in path_dirs: + if 'assimp' in dir_candidate.lower(): + additional_dirs.append(dir_candidate) + #print(additional_dirs) def vec2tuple(x): """ Converts a VECTOR3D to a Tuple """