Permalink
Browse files

making script/extension work when you're out of script folder (in rub…

…y 1.9). script/server already has this one but not script/extension
  • Loading branch information...
1 parent 252d410 commit bd8fd30bba5349e9dad1eb18cf54b92c485cea90 @aziz aziz committed Jan 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/extension
View
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + "/../config/boot"
+require File.expand_path('../../config/boot', __FILE__)
require 'radiant/extension/script'
Radiant::Extension::Script.execute ARGV

0 comments on commit bd8fd30

Please sign in to comment.