# -*- 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"
