diff options
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index a41d4e13be..522b53f762 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -850,6 +850,8 @@ class Binding IRB.setup(source_location[0], argv: []) workspace = IRB::WorkSpace.new(self) STDOUT.print(workspace.code_around_binding) - IRB::Irb.new(workspace).run(IRB.conf) + binding_irb = IRB::Irb.new(workspace) + binding_irb.context.irb_path = File.expand_path(source_location[0]) + binding_irb.run(IRB.conf) end end |