Skip to content

Commit

Permalink
Merge commit 'zuk/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
judofyr committed May 6, 2009
2 parents 7b914ab + adcaede commit ed9b5e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/camping/reloader.rb
Expand Up @@ -132,8 +132,12 @@ def mtime

# Figures out the full path of a required file.
def full_path(req)
dir = File.expand_path($LOAD_PATH.detect { |l| File.exists?(File.join(l, req)) })
File.join(dir, req)
dir = $LOAD_PATH.detect { |l| File.exists?(File.join(l, req)) }
if dir
File.join(File.expand_path(dir), req)
else
req
end
end
end

Expand Down

0 comments on commit ed9b5e3

Please sign in to comment.