YADR can be installed to any directory and everything still works

This commit is contained in:
Kyle West
2012-01-25 02:04:37 -05:00
parent a658b815f5
commit 42104de0aa
9 changed files with 41 additions and 40 deletions

View File

@@ -1,2 +1,4 @@
Dir[File.join(File.dirname(__FILE__),"lib/**/lib")].each {|dir| $LOAD_PATH << dir}
require 'git-style-binary/command'
$yadr = `find -L ~ -type file -maxdepth 2 -name .yadr | head | sed 's:\.yadr\/::'`.chomp