#!/usr/bin/env ruby require "pathname" begin file = Pathname(__FILE__) file = file.readlink if file.symlink? local_seedling = file.join('../../lib/seedling.rb').expand_path if local_seedling.file? require local_seedling else require "seedling" end require "seedling/bin" rescue LoadError require "rubygems" require "seedling/bin" end Seedling::Bin::Cmd.run(ARGV)