Stop messing with load path in middleman executable
This commit is contained in:
parent
0327e2067f
commit
e35ce52803
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue