Permalink
Browse files

Merge pull request #311 from aziz/patch-1

making script/extension work when you're out of script folder (in ruby 1.9)
  • Loading branch information...
2 parents 252d410 + bd8fd30 commit f25e91e3a29b386e055e07be2ab41b6fd5699db7 @saturnflyer saturnflyer 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 f25e91e

Please sign in to comment.