From 1570293c0ca53a97fbda95dad51c6f6d60914e00 Mon Sep 17 00:00:00 2001 From: Jason Harwig Date: Mon, 8 Aug 2011 16:01:04 -0500 Subject: [PATCH] fix templates_path on windows --- lib/middleman/templates/local.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/middleman/templates/local.rb b/lib/middleman/templates/local.rb index affaf8da..a34f639e 100644 --- a/lib/middleman/templates/local.rb +++ b/lib/middleman/templates/local.rb @@ -1,6 +1,6 @@ module Middleman def self.templates_path - File.join(`cd ~ && pwd`.chomp, ".middleman") + File.join(File.expand_path("~/"), ".middleman") end end @@ -17,4 +17,4 @@ end Dir[File.join(Middleman.templates_path, "*")].each do |dir| next unless File.directory?(dir) Middleman::Templates.register(File.basename(dir).to_sym, Middleman::Templates::Local) -end \ No newline at end of file +end