Skip to content

Commit 9f3a1e2

Browse files
committed
Swap out the root at bootstrap time for the current root.
1 parent a50efa9 commit 9f3a1e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/bootstrap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@ __END__
112112
# This file was generated by script/bootstrap.
113113
root = File.expand_path('../..', __FILE__)
114114
require "#\{root\}/config/load"
115-
load File.join('#{spec.full_gem_path}', '#{spec.bindir}', '#{executable}')
115+
gem_path = "#{spec.full_gem_path.sub(root, "#\{root\}")}"
116+
load File.join(gem_path, '#{spec.bindir}', '#{executable}')
116117

0 commit comments

Comments
 (0)