Merge pull request #95 from jharwig/master
Error on Windows platform: "The system cannot find the path specified."
This commit is contained in:
commit
774096d456
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue