Made it easy to optionally use RubyPython for pygments, closes #923

This commit is contained in:
Brandon Mathis 2013-01-13 23:03:55 -06:00
parent 5251313aa6
commit 9994770225

View File

@ -3,6 +3,10 @@ require './plugins/config'
require 'pygments'
require 'fileutils'
require 'digest/md5'
begin # Make it easy for folks to use rubypython if they like
require 'rubypython'
rescue LoadError # rubypython is not installed
end
PYGMENTS_CACHE_DIR = File.expand_path('../../.pygments-cache', __FILE__)
FileUtils.mkdir_p(PYGMENTS_CACHE_DIR)