From 33bd5cfcfb0f27794a333273b20b60a7a550d184 Mon Sep 17 00:00:00 2001 From: Guillaume Bittoun Date: Sat, 8 Apr 2017 11:16:28 +0200 Subject: [PATCH] Installing assimp library as well --- port/PyAssimp/pyassimp/helper.py | 5 ++++- port/PyAssimp/setup.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/port/PyAssimp/pyassimp/helper.py b/port/PyAssimp/pyassimp/helper.py index b281e94cf..99d0b1758 100644 --- a/port/PyAssimp/pyassimp/helper.py +++ b/port/PyAssimp/pyassimp/helper.py @@ -8,6 +8,7 @@ import os import ctypes from ctypes import POINTER import operator +import sys try: import numpy except: numpy = None @@ -39,7 +40,9 @@ elif os.name=='nt': for dir_candidate in path_dirs: if 'assimp' in dir_candidate.lower(): additional_dirs.append(dir_candidate) - + +additional_dirs += sys.path + #print(additional_dirs) def vec2tuple(x): """ Converts a VECTOR3D to a Tuple """ diff --git a/port/PyAssimp/setup.py b/port/PyAssimp/setup.py index e683f7a81..8f3cdcae2 100644 --- a/port/PyAssimp/setup.py +++ b/port/PyAssimp/setup.py @@ -9,5 +9,7 @@ setup(name='pyassimp', url='https://github.com/assimp/assimp', packages=['pyassimp'], data_files=[('share/pyassimp', ['README.md']), - ('share/examples/pyassimp', ['scripts/' + f for f in os.listdir('scripts/')])], requires=['numpy'] + ('share/examples/pyassimp', ['scripts/' + f for f in os.listdir('scripts/')]), + ('lib/', [f for f in os.listdir('../../lib') if os.path.isfile(f)])], + requires=['numpy'] )