File: ngraph.rb.win

package info (click to toggle)
ngraph-gtk 6.09.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,044 kB
  • sloc: ansic: 114,209; sh: 5,844; ruby: 1,824; makefile: 590; cpp: 373; xml: 216; sed: 39; awk: 11
file content (10 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
# -*- coding: utf-8 -*-
rb_path = File.dirname(File.expand_path(__FILE__))
bin_path = File.dirname(File.dirname(rb_path)) + '/bin'
win_bin_path = bin_path.gsub("/",'\\\\')
ENV['PATH'] += ";#{win_bin_path}" unless (ENV['PATH'].index(win_bin_path))
if (require "#{rb_path}/ngraph.so")
  Ngraph::ngraph_initialize(bin_path + "/ngraph.exe")
end

require "#{rb_path}/ngraph/ngp2"