diff options
author | Takashi Kokubun <[email protected]> | 2022-09-22 21:07:00 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-09-22 21:07:22 +0900 |
commit | 69130e1614b8b0cae8494c249a04d8086448e864 (patch) | |
tree | dd07129bec51e9fbafa19f157c232ad16d59a2fd /tool/ruby_vm/helpers | |
parent | 9434a7333c2a23c680a977331a60ca7c502c1ac0 (diff) |
Expand paths used for dumper.rb
This seems to be needed on Samuel's environment
Diffstat (limited to 'tool/ruby_vm/helpers')
-rw-r--r-- | tool/ruby_vm/helpers/dumper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/ruby_vm/helpers/dumper.rb b/tool/ruby_vm/helpers/dumper.rb index c8a65e0650..c083dffa7a 100644 --- a/tool/ruby_vm/helpers/dumper.rb +++ b/tool/ruby_vm/helpers/dumper.rb @@ -28,8 +28,8 @@ class RubyVM::Dumper path = Pathname.new(__FILE__) path = (path.relative_path_from(Pathname.pwd) rescue path).dirname path += '../views' - path += Pathname.pwd.join(spec).to_s.sub("#{@base}/", '') - src = path.read mode: 'rt:utf-8:utf-8' + path += Pathname.pwd.join(spec).expand_path.to_s.sub("#{@base}/", '') + src = path.expand_path.read mode: 'rt:utf-8:utf-8' rescue Errno::ENOENT raise "don't know how to generate #{path}" else |