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:
parent
6fd797d302
commit
bd3095791b
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Pry
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue