From ec4a896fdd874740a443fd9b66772a0756da3c1e Mon Sep 17 00:00:00 2001 From: James Hensman Date: Thu, 19 Dec 2013 16:33:31 +0000 Subject: [PATCH] fixed come path issues in sympykern --- GPy/kern/parts/sympykern.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GPy/kern/parts/sympykern.py b/GPy/kern/parts/sympykern.py index bcd52fe2..a839437b 100644 --- a/GPy/kern/parts/sympykern.py +++ b/GPy/kern/parts/sympykern.py @@ -6,7 +6,7 @@ from scipy import weave import re import os import sys -current_dir = os.path.dirname(os.path.abspath(os.path.dirname(__file__))) +current_dir = os.path.dirname(os.path.abspath(__file__)) import tempfile import pdb import ast @@ -107,9 +107,9 @@ class spkern(Kernpart): self.weave_kwargs = { 'support_code':self._function_code, - 'include_dirs':[tempfile.gettempdir(), os.path.join(current_dir,'parts/')], + 'include_dirs':[tempfile.gettempdir(), current_dir], 'headers':['"sympy_helpers.h"'], - 'sources':[os.path.join(current_dir,"parts/sympy_helpers.cpp")], + 'sources':[os.path.join(current_dir,"sympy_helpers.cpp")], 'extra_compile_args':extra_compile_args, 'extra_link_args':[], 'verbose':True}