Add “lib” to $: in bin/teamocil

This commit is contained in:
Rémi Prévost 2011-02-05 16:38:07 -05:00
parent b71e5a9470
commit 9f1b573a99
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,9 @@
#!/usr/bin/env ruby
require File.dirname(__FILE__)+"/../lib/teamocil"
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require 'yaml'
require 'teamocil'
if ENV["TMUX"] == nil
puts "You must be in a tmux session to use teamocil"

View File

@ -1,8 +1,3 @@
require 'yaml'
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
module Teamocil
VERSION = '0.1.2'
autoload :Layout, "teamocil/layout"