Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

only modify the LOAD_PATH when the extension is vendored

  • Loading branch information...
commit 1e40cf60df649abdb124bcc1dc74a14bba1e2fa9 1 parent d3c4c0f
@johnmuhl authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 kramdown_filter_extension.rb
View
4 kramdown_filter_extension.rb
@@ -1,4 +1,6 @@
-$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.4.0/lib"
+if File.exist? "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.4.0"
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/vendor/gems/kramdown-0.4.0/lib"
+end
require 'kramdown'
class KramdownFilterExtension < Radiant::Extension
Please sign in to comment.
Something went wrong with that request. Please try again.