__file__ is not define in cython module but in the functions.

This commit is contained in:
Jerome Kieffer 2012-06-08 17:00:59 +02:00
parent 9489e432d9
commit b12c1281d3
1 changed files with 2 additions and 3 deletions

View File

@ -37,8 +37,6 @@ import numpy
import threading
import cython
OCL_KERNEL = os.path.join(os.path.dirname(os.path.abspath(__file__)),"ocl_azim_kernel_2.cl")
cdef class Integrator1d:
"""
@ -338,7 +336,8 @@ def histGPU1d(numpy.ndarray weights not None,
pos0_min = max(0,cpos0.min())
pos0_maxin = cpos0.max()
pos0_max = pos0_maxin * (1.0 + numpy.finfo(numpy.float32).eps)
OCL_KERNEL = os.path.join(os.path.dirname(os.path.abspath(__file__)),"ocl_azim_kernel_2.cl")
if (size,bins) not in _INTEGRATORS_1D:
with lock: