bin/review-webmaker in review-5.0.0 vs bin/review-webmaker in review-5.1.0
- old
+ new
@@ -4,12 +4,10 @@
# You can distribute or modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
#
-require 'pathname'
-bindir = Pathname.new(__FILE__).realpath.dirname
-$LOAD_PATH.unshift((bindir + '../lib').realpath)
+$LOAD_PATH.unshift(File.realpath('../lib', __dir__))
require 'review/webmaker'
ReVIEW::WEBMaker.execute(*ARGV)