From e3a8d98ca0217550473be642171464884972cb6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Sun, 15 May 2011 13:50:00 +0000 Subject: [PATCH] fix pykpathsea locator git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@3115 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/filelocator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyx/filelocator.py b/pyx/filelocator.py index da778f7e..98f0ba7f 100644 --- a/pyx/filelocator.py +++ b/pyx/filelocator.py @@ -27,7 +27,7 @@ import os, cStringIO, warnings, pkgutil import config, pycompat try: - import pykpathsea + import pykpathsea as pykpathsea_module has_pykpathsea = True except ImportError: has_pykpathsea = False @@ -161,7 +161,7 @@ class pykpathsea: if not has_pykpathsea: return [] for name in names: - full_filename = pykpathsea.find_file(filename, name) + full_filename = pykpathsea_module.find_file(filename, name) if full_filename: break else: @@ -239,7 +239,7 @@ locator_classes["locate"] = locate def init(): global methods, opener_cache methods = [locator_classes[method]() - for method in config.getlist("locator", "methods", "local internal pykpathsea kpsewhich")] + for method in config.getlist("filelocator", "methods", "local internal pykpathsea kpsewhich")] opener_cache = {} -- 2.11.4.GIT