modules: create the modules directory if it's missing, use cache/

This commit is contained in:
Alexander Medvednikov 2019-10-12 05:04:56 +03:00
parent acbca7584b
commit b107b4f1e5
4 changed files with 19 additions and 5 deletions

View file

@ -120,8 +120,6 @@ fn (v &V) generate_vh() {
}
// os.mkdir(os.realpath(dir))
}
println(path)
file := os.create(path) or { panic(err) }
// Consts
mod_def := if v.mod.contains('.') { v.mod.all_after('.') } else { v.mod }