Skip to content

Commit

Permalink
fix precedence of loading files in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 27, 2014
1 parent 1d1f801 commit b94337f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ruby/yast.rb
Expand Up @@ -44,8 +44,9 @@
require "yast/ui_shortcuts"
require "yast/wfm"

#add yast specific path for ruby libraries, similar to lib directory in rails
Yast.y2paths.each do |p|
# add yast specific path for ruby libraries, similar to lib directory in rails
# unshift it in reverse order to keep precedence
Yast.y2paths.reverse.each do |p|
dir_path = File.join(p, "lib")
if File.exists? dir_path
$LOAD_PATH.unshift dir_path
Expand Down

0 comments on commit b94337f

Please sign in to comment.