Skip to content

Commit 4fef8f9

Browse files
committed
No need of "/app/lib". Related PR varnamproject#157
1 parent 13654e9 commit 4fef8f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

varnamc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def find_libvarnam
3333
return $options[:library] if not $options[:library].nil?
3434
# Trying to find out libvarnam in the predefined locations if
3535
# absolute path to the library is not specified
36-
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']
36+
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']
3737
libvarnam_names = ['libvarnam.so', "libvarnam.so.#{$libvarnam_major_version}", 'libvarnam.dylib', 'varnam.dll']
3838
libvarnam_search_paths.each do |path|
3939
libvarnam_names.each do |fname|
@@ -54,7 +54,7 @@ else
5454
puts "Using #{$options[:library]}" if $options[:verbose]
5555
end
5656

57-
varnamruby_searchpaths = [".", File.dirname(File.expand_path(__FILE__)), "/app/lib", "/usr/local/lib", "/usr/lib"]
57+
varnamruby_searchpaths = [".", File.dirname(File.expand_path(__FILE__)), "/usr/local/lib", "/usr/lib"]
5858
varnamruby_loaded = false
5959
varnamruby_searchpaths.each do |p|
6060
begin

0 commit comments

Comments
 (0)