=== modified file 'src/templates/lib.tmpl.py' --- src/templates/lib.tmpl.py 2010-03-22 01:56:58 +0000 +++ src/templates/lib.tmpl.py 2010-03-23 22:15:49 +0000 @@ -26,14 +26,11 @@ from os import environ from warnings import warn -try: - fftw_path = eviron['FFTW_PATH'] - libfullpath = join(abspath(fftw_path),r'$library$') -except: - libfullpath = r'$libraryfullpath$' - if not isfile(libfullpath) and (osname=='nt' or psystem=='Windows'): - if isfile(join(dirname(__file__), libfullpath)): - libfullpath = join(dirname(__file__), libfullpath) + +libfullpath = r'$libraryfullpath$' +if not isfile(libfullpath) and (osname=='nt' or psystem=='Windows'): + if isfile(join(dirname(__file__), libfullpath)): + libfullpath = join(dirname(__file__), libfullpath) # must use ctypes.RTLD_GLOBAL for threading support ctypes._dlopen(libfullpath, ctypes.RTLD_GLOBAL)