Permalink
Browse files

fixing up loading for relative paths

  • Loading branch information...
1 parent 2a7ee29 commit 7824789de536dc523381ce584ad2e83520d9994d @markhuot committed Sep 1, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 spectator
View
@@ -1,9 +1,8 @@
#!/usr/bin/env ruby
-require 'rubygems'
-
-Dir.glob(File.join("vendor", "gems", "*", "lib")).each do |lib|
- $LOAD_PATH.unshift(File.expand_path(lib))
+path = File.join(File.dirname(__FILE__), "vendor", "gems", "*", "lib")
+Dir.glob(path).each do |lib|
+ $LOAD_PATH.unshift(File.expand_path(lib))
end
require 'tilt'

0 comments on commit 7824789

Please sign in to comment.