summaryrefslogtreecommitdiff
path: root/scripts/find_error.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-12-20 21:14:44 +0100
committergbrandl <devnull@localhost>2006-12-20 21:14:44 +0100
commit1d634b6950bfac268f6d05a673fd48094738f01e (patch)
tree2788e9f4315a10392eee6371860c6045f8f74e31 /scripts/find_error.py
parent25ad3be9474211bb8a652deadea00677886dadf5 (diff)
downloadpygments-1d634b6950bfac268f6d05a673fd48094738f01e.tar.gz
[svn] Improve Unicode handling without encoding.
Diffstat (limited to 'scripts/find_error.py')
-rw-r--r--scripts/find_error.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/find_error.py b/scripts/find_error.py
index ac50a1d1..f9b4b2ae 100644
--- a/scripts/find_error.py
+++ b/scripts/find_error.py
@@ -12,7 +12,13 @@
:license: BSD, see LICENSE for more details.
"""
-import sys
+import sys, os
+
+try:
+ import pygments
+except ImportError:
+ # try parent path
+ sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
from pygments import highlight
from pygments.lexers import get_lexer_for_filename, get_lexer_by_name