Transform input spec path to absolute path

Fixes #183
This commit is contained in:
Dave Lee
2017-12-05 18:35:06 -08:00
committed by GitHub
parent 9676d1340b
commit 0e4118ee8a
+1 -1
View File
@@ -21,7 +21,7 @@ func generate(spec: String, project: String, isQuiet: Bool, justVersion: Bool) {
exit(1)
}
let specPath = Path(spec).normalize()
let specPath = Path(URL(fileURLWithPath: spec).path).normalize()
let projectPath = Path(project).normalize()
if !specPath.exists {