Permalink
Browse files

Fix pathname issues

  • Loading branch information...
1 parent 38ae5c9 commit 4a016b4c915e5eda4f5bc701532db5ed4a43edfd @paulcbetts committed Jan 28, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/library.rb
View
@@ -234,7 +234,8 @@ def load_taggers(*paths)
paths.each do |x|
log DEBUG, "Trying to load #{x}"
Pathname.new(x).each_entry do |y|
- file = File.join(x,y)
+ # Canonicalize path - otherwise we'll confuse 'require'
+ file = Pathname.new(File.join(x,y)).realpath
require file if y.extname == '.rb'
end
end

0 comments on commit 4a016b4

Please sign in to comment.