Browse files

.pryrc was loaded with wrong __FILE__, fixed

  • Loading branch information...
1 parent 6fd797d commit bd3095791bd0a738ad6d1f487d54f3be8312375e @rking rking committed with rking@sharpsaw.org Aug 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/pry_class.rb
View
2 lib/pry/pry_class.rb
@@ -63,7 +63,7 @@ def self.delegate_accessors(delagatee, *names)
def self.load_file_at_toplevel(file_name)
full_name = File.expand_path(file_name)
begin
- toplevel_binding.eval(File.read(full_name)) if File.exists?(full_name)
+ toplevel_binding.eval(File.read(full_name), full_name) if File.exists?(full_name)
rescue RescuableException => e
puts "Error loading #{file_name}: #{e}"
end

0 comments on commit bd30957

Please sign in to comment.