Method: Ext.binary_path

Defined in:
lib/shadowsocks/table.rb

.binary_pathObject



5
6
7
8
9
10
11
12
13
# File 'lib/shadowsocks/table.rb', line 5

def self.binary_path
  path = ''
  %w( so bundle dll ).each do |ext|
    path = File.expand_path('..', File.dirname(__FILE__)) + "/encrypt.#{ext}"
    break if File.exists? path
  end

  path
end