Skip to content

Commit

Permalink
no need to munge LOAD_PATH
Browse files Browse the repository at this point in the history
In Rubygems environment, the LOAD_PATH will already be set and there's
no need to add a duplicate to it.

In development or other setups, simply prepare the LOAD_PATH yourself:

  $ RUBYLIB=lib bin/cane

  # or:

  $ ruby -Ilib bin/cane
  • Loading branch information
mislav committed Mar 8, 2012
1 parent f8e8dd7 commit b8571e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/cane
@@ -1,7 +1,5 @@
#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))

require 'cane/cli'

result = Cane::CLI.run(ARGV)
Expand Down

0 comments on commit b8571e9

Please sign in to comment.