File: ngraph.rb.osx

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 (14 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-
rb_path = File.dirname(File.expand_path(__FILE__))
if (ENV['NGRAPH_APP_CONTENTS'])
  bin_path = ENV['NGRAPH_APP_CONTENTS'] + "/MacOS"
else
  bin_path = File.dirname(File.dirname(File.dirname(rb_path))) + "/bin"
end

ENV['PATH'] += ":#{bin_path}" unless (ENV['PATH'].index(bin_path))
if (require "#{rb_path}/ngraph.bundle")
  Ngraph::ngraph_initialize(bin_path + "/Ngaph-GTK")
end

require "#{rb_path}/ngraph/ngp2"