Permalink
Browse files

support for executing binary from inside a checked-out project dir

  • Loading branch information...
1 parent 5086b6f commit 9f7995b780629bce467d5164bf4f595bf76d5018 @alexch alexch committed May 23, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 bin/erector
View
@@ -1,5 +1,11 @@
#!/usr/bin/env ruby
+here = File.expand_path(File.dirname(__FILE__))
+
+if File.directory?("#{here}/../lib/erector")
+ $:.unshift "#{here}/../lib"
+end
+
begin
require 'erector'
rescue LoadError

0 comments on commit 9f7995b

Please sign in to comment.