1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

doc: don't modify path to vlib

This commit is contained in:
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

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)