mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
12 lines
269 B
Ruby
Executable file
12 lines
269 B
Ruby
Executable file
require (File.dirname(__FILE__) + '/opencv/version')
|
|
|
|
if RUBY_PLATFORM =~ /mingw|mswin/
|
|
major, minor, subminor = RUBY_VERSION.split('.')
|
|
begin
|
|
require "#{major}.#{minor}/opencv.so"
|
|
rescue LoadError
|
|
require 'opencv.so'
|
|
end
|
|
else
|
|
require 'opencv.so'
|
|
end
|