Skip to content

Commit

Permalink
No need of "/app/lib". Related PR varnamproject#157
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Sep 19, 2020
1 parent cd85661 commit 3078d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions varnamc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def find_libvarnam
return $options[:library] if not $options[:library].nil?
# Trying to find out libvarnam in the predefined locations if
# absolute path to the library is not specified
libvarnam_search_paths = ['.', File.dirname(File.expand_path(__FILE__)), '/app/lib', '/usr/local/lib', '/usr/local/lib/i386-linux-gnu', '/usr/local/lib/x86_64-linux-gnu', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu', '/usr/lib']
libvarnam_search_paths = ['.', File.dirname(File.expand_path(__FILE__)), '/usr/local/lib', '/usr/local/lib/i386-linux-gnu', '/usr/local/lib/x86_64-linux-gnu', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu', '/usr/lib']
libvarnam_names = ['libvarnam.so', "libvarnam.so.#{$libvarnam_major_version}", 'libvarnam.dylib', 'varnam.dll']
libvarnam_search_paths.each do |path|
libvarnam_names.each do |fname|
Expand All @@ -54,7 +54,7 @@ else
puts "Using #{$options[:library]}" if $options[:verbose]
end

varnamruby_searchpaths = [".", File.dirname(File.expand_path(__FILE__)), "/app/lib", "/usr/local/lib", "/usr/lib"]
varnamruby_searchpaths = [".", File.dirname(File.expand_path(__FILE__)), "/usr/local/lib", "/usr/lib"]
varnamruby_loaded = false
varnamruby_searchpaths.each do |p|
begin
Expand Down

0 comments on commit 3078d15

Please sign in to comment.