Merge pull request #598 from bhollis/load_path
Stop messing with load path in middleman executable
This commit is contained in:
commit
8e808a2324
1 changed files with 0 additions and 7 deletions
|
@ -1,12 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/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'
|
require 'middleman-core/profiling'
|
||||||
if ARGV.include? '--profile'
|
if ARGV.include? '--profile'
|
||||||
Middleman::Profiling.profiler = Middleman::Profiling::RubyProfProfiler.new
|
Middleman::Profiling.profiler = Middleman::Profiling::RubyProfProfiler.new
|
||||||
|
|
Loading…
Reference in a new issue