From 664810a6cb727df6c1b4faf6c87d4e1624c502d4 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 13 Jun 2011 17:28:30 -0500 Subject: [PATCH] Use GH vendored pygments --- Rakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 832efd86..cb7b8993 100644 --- a/Rakefile +++ b/Rakefile @@ -10,5 +10,12 @@ end CLOBBER.include 'lib/linguist/lexers.yml' file 'lib/linguist/lexers.yml' do |f| - sh "./bin/pygments-lexers > #{f.name}" + # GitHub vendored pygments path + # vendor/python/pygments + path = File.expand_path('../../../python/pygments', __FILE__) + ENV['PYTHONPATH'] = path if File.directory?(path) + + sh "python ./bin/pygments-lexers > #{f.name}" end + +task :lexers => 'lib/linguist/lexers.yml'