Permalink
Browse files

add lib dir to load path if available

  • Loading branch information...
geemus committed Jan 28, 2011
1 parent cb11866 commit f8bd08b88e67bfd0987443ccdf62796afa55a2da
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/shindo/bin.rb
View
@@ -11,6 +11,14 @@
end
Kernel.trap('INT', @interrupt)
+# if lib dir is available add it to load path
+if File.directory?('lib')
+ lib_dir = File.expand_path('lib')
+ unless $LOAD_PATH.include?(lib_dir)
+ $LOAD_PATH.unshift(lib_dir)
+ end
+end
+
helpers = Dir.glob(File.join('tests', '**', '*helper.rb')).sort_by {|helper| helper.count(File::SEPARATOR)}
tags = []
for argument in ARGV

0 comments on commit f8bd08b

Please sign in to comment.