Skip to content

Commit

Permalink
use vendored pygments library
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 16, 2011
1 parent 25e7170 commit 25cd1ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pygments/ffi.rb
Expand Up @@ -6,6 +6,8 @@ module FFI

def start
RubyPython.start
sys = RubyPython.import('sys')
sys.path.insert(0, File.expand_path('../../../vendor/Pygments-1.4/', __FILE__))

@modules = [ :lexers, :formatters, :styles, :filters ].inject(Hash.new) do |hash, name|
hash[name] = RubyPython.import("pygments.#{name}")
Expand Down

0 comments on commit 25cd1ac

Please sign in to comment.