Skip to content

Commit

Permalink
Fix create template path
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirose.Yudai committed Mar 1, 2017
1 parent a1767be commit 3052eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Kuri/Command/Generate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ fileprivate extension Generate {
let typeFor = (componentType, generateType)

let kuriTemplatePath = templateDirectoryName != nil ?
yamlReader.templateRootPath(from: typeFor) + "./" + templateDirectoryName! + "/" :
yamlReader.kuriTemplatePath(from: typeFor)
yamlReader.templateRootPath(from: typeFor) + templateDirectoryName! + "/" :
yamlReader.templateRootPath(from: typeFor) + yamlReader.kuriTemplatePath(from: typeFor) + "/"
let templatePath = kuriTemplatePath + generateType.name + "/" + componentType.name + "/" + componentType.fileName
let generateRootPath = yamlReader.generateRootPath(from: typeFor)
let projectRootPath = yamlReader.projectRootPath(from: typeFor)
Expand Down
2 changes: 1 addition & 1 deletion KuriDemo

0 comments on commit 3052eba

Please sign in to comment.