Permalink
Browse files

Allow use of source code based ti in other projects

  • Loading branch information...
1 parent 9708078 commit a518932b41d89e1e853587f2ac4e610f7f570865 @dalefukami dalefukami committed May 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/ti
View
@@ -5,7 +5,7 @@ require 'fileutils'
# Add the library from the source tree to the front of the load path.
# This allows ti to run without first installing a ticgit gem, which is
# important when testing multiple branches of development.
-if File.exist? File.join('lib', 'ticgit-ng.rb')
+if File.exist? File.join(File.dirname(__FILE__), '..', 'lib', 'ticgit-ng.rb')
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
end
require 'ticgit-ng'

0 comments on commit a518932

Please sign in to comment.