We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d75ae5a commit ba32cc3Copy full SHA for ba32cc3
lib/opencv.rb
@@ -2,9 +2,8 @@
2
3
if RUBY_PLATFORM =~ /mingw|mswin/
4
major, minor, subminor = RUBY_VERSION.split('.')
5
- version_dir = (major.to_i >= 2) ? '2.0' : '1.9'
6
begin
7
- require "#{version_dir}/opencv.so"
+ require "#{major}.#{minor}/opencv.so"
8
rescue LoadError
9
require 'opencv.so'
10
end
0 commit comments