summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/helpers/scanner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ruby_vm/helpers/scanner.rb')
-rw-r--r--tool/ruby_vm/helpers/scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/helpers/scanner.rb b/tool/ruby_vm/helpers/scanner.rb
index 5ae1363480..8f7531abda 100644
--- a/tool/ruby_vm/helpers/scanner.rb
+++ b/tool/ruby_vm/helpers/scanner.rb
@@ -20,7 +20,7 @@ class RubyVM::Scanner
attr_reader :__LINE__
def initialize path
- src = Pathname.new __dir__
+ src = Pathname.new(__FILE__).realpath.dirname
src += path
@__LINE__ = 1
@__FILE__ = src.realpath.to_path