Skip to content

Commit ba32cc3

Browse files
committed
change library file path to load
1 parent d75ae5a commit ba32cc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/opencv.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
if RUBY_PLATFORM =~ /mingw|mswin/
44
major, minor, subminor = RUBY_VERSION.split('.')
5-
version_dir = (major.to_i >= 2) ? '2.0' : '1.9'
65
begin
7-
require "#{version_dir}/opencv.so"
6+
require "#{major}.#{minor}/opencv.so"
87
rescue LoadError
98
require 'opencv.so'
109
end

0 commit comments

Comments
 (0)