summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/Executable.standalone
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/Executable.standalone')
-rw-r--r--lib/bundler/templates/Executable.standalone6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bundler/templates/Executable.standalone b/lib/bundler/templates/Executable.standalone
index 4bf0753f44..d591e3fc04 100644
--- a/lib/bundler/templates/Executable.standalone
+++ b/lib/bundler/templates/Executable.standalone
@@ -6,9 +6,7 @@
# this file is here to facilitate running it.
#
-require "pathname"
-path = Pathname.new(__FILE__)
-$:.unshift File.expand_path "../<%= standalone_path %>", path.realpath
+$:.unshift File.expand_path "<%= standalone_path %>", __dir__
require "bundler/setup"
-load File.expand_path "../<%= executable_path %>", path.realpath
+load File.expand_path "<%= executable_path %>", __dir__