Skip to content

Commit

Permalink
Made it easy to optionally use RubyPython for pygments, closes imathi…
Browse files Browse the repository at this point in the history
  • Loading branch information
imathis committed Jan 14, 2013
1 parent 5251313 commit 9994770
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/pygments_code.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require 'pygments' require 'pygments'
require 'fileutils' require 'fileutils'
require 'digest/md5' 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__) PYGMENTS_CACHE_DIR = File.expand_path('../../.pygments-cache', __FILE__)
FileUtils.mkdir_p(PYGMENTS_CACHE_DIR) FileUtils.mkdir_p(PYGMENTS_CACHE_DIR)
Expand Down

0 comments on commit 9994770

Please sign in to comment.