1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

.pryrc was loaded with wrong __FILE__, fixed

This commit is contained in:
☈king 2012-08-05 05:42:49 +00:00 committed by rking@sharpsaw.org
parent 6fd797d302
commit bd3095791b

View file

@ -63,7 +63,7 @@ class Pry
def self.load_file_at_toplevel(file_name) def self.load_file_at_toplevel(file_name)
full_name = File.expand_path(file_name) full_name = File.expand_path(file_name)
begin 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 rescue RescuableException => e
puts "Error loading #{file_name}: #{e}" puts "Error loading #{file_name}: #{e}"
end end