Merge pull request #598 from bhollis/load_path

Stop messing with load path in middleman executable
This commit is contained in:
Thomas Reynolds 2012-09-16 00:10:26 -07:00
commit 8e808a2324

View file

@ -1,12 +1,5 @@
#!/usr/bin/env ruby
# Add our lib/ directory to the path
libdir = File.expand_path(File.join(File.dirname(File.dirname(__FILE__)), "lib"))
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
moredir = File.expand_path(File.join(File.dirname(File.dirname(libdir)), "middleman-more", "lib", "middleman-more"))
$LOAD_PATH.unshift(moredir) unless $LOAD_PATH.include?(moredir)
require 'middleman-core/profiling'
if ARGV.include? '--profile'
Middleman::Profiling.profiler = Middleman::Profiling::RubyProfProfiler.new