aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/20-require-load-path.patch
blob: f862fc271f3035f0bc368fc6859793674ec56efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix require for load_path.rb
--- a/bin/leap
+++ b/bin/leap
@@ -21,8 +21,9 @@
   # This allows you to run the command directly while developing the gem, and also lets you
   # run from anywhere (I like to link 'bin/leap' to /usr/local/bin/leap).
   #
-  base_dir = File.expand_path('..', File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__))
-  require File.join(base_dir, 'lib','leap_cli','load_paths')
+  #base_dir = File.expand_path('..', File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__))
+  #require File.join(base_dir, 'lib','leap_cli','load_paths')
+  require '/usr/lib/ruby/vendor_ruby/leap_cli/load_paths.rb'
   require 'leap_cli'
 end