bin/padrino-gen in padrino-gen-0.9.4 vs bin/padrino-gen in padrino-gen-0.9.5

- old
+ new

@@ -1,12 +1,12 @@ #!/usr/bin/env ruby require 'rubygems' -$:.unshift File.dirname(__FILE__) + "/../lib" +padrino_gen_path = File.expand_path('../../lib', __FILE__) +$:.unshift(padrino_gen_path) if File.directory?(padrino_gen_path) && !$:.include?(padrino_gen_path) # We try to load the vendored padrino-core if exist -if File.exist?(File.dirname(__FILE__) + "/../../padrino-core/lib") - $:.unshift File.dirname(__FILE__) + "/../../padrino-core/lib" -end +padrino_core_path = File.expand_path('../../../padrino-core/lib', __FILE__) +$:.unshift(padrino_core_path) if File.directory?(padrino_core_path) && !$:.include?(padrino_core_path) require 'padrino-gen' require 'padrino-gen/generators/cli' # We need our config boot because we need to load registered generators so: \ No newline at end of file