Skip to content

Commit 310f83c

Browse files
committed
nits: Use File.expand_path
1 parent a7d84ed commit 310f83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tools/ruby_h_to_go/exe/ruby_h_to_go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ header_dir = nil
1515
dist_dir = nil
1616

1717
DEFAULT_RUBY_HEADER_DIR = RbConfig::CONFIG["rubyhdrdir"]
18-
DEFAULT_DIST_DIR = File.join(__dir__, "..", "dist")
18+
DEFAULT_DIST_DIR = File.expand_path("../dist", __dir__)
1919

2020
opt = OptionParser.new
2121
opt.on("-H", "--header-dir HEADER_DIR", "ruby header dir (default: #{DEFAULT_RUBY_HEADER_DIR})") { |v| header_dir = v }

0 commit comments

Comments
 (0)