mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Made it easy to optionally use RubyPython for pygments, closes #923
This commit is contained in:
parent
5251313aa6
commit
9994770225
@ -3,6 +3,10 @@ require './plugins/config'
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user