doc: don't modify path to vlib

pull/3931/head
Alexander Medvednikov 2020-03-05 13:48:06 +01:00 committed by GitHub
parent 9921897aa6
commit 38a54b08e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ pub fn doc(mod string, table &table.Table) string {
table: table
mod: mod
}
mods_path := filepath.dir(pref.vexe_path()) + '/vlib'
path := filepath.join(mods_path,mod).replace('.', filepath.separator)
vlib_path := filepath.dir(pref.vexe_path()) + '/vlib'
mod_path := mod.replace('.', filepath.separator)
path := filepath.join(vlib_path, mod_path)
if !os.exists(path) {
println('module "$mod" not found')
println(path)