doc: don't modify path to vlib
parent
9921897aa6
commit
38a54b08e3
|
@ -27,8 +27,9 @@ pub fn doc(mod string, table &table.Table) string {
|
||||||
table: table
|
table: table
|
||||||
mod: mod
|
mod: mod
|
||||||
}
|
}
|
||||||
mods_path := filepath.dir(pref.vexe_path()) + '/vlib'
|
vlib_path := filepath.dir(pref.vexe_path()) + '/vlib'
|
||||||
path := filepath.join(mods_path,mod).replace('.', filepath.separator)
|
mod_path := mod.replace('.', filepath.separator)
|
||||||
|
path := filepath.join(vlib_path, mod_path)
|
||||||
if !os.exists(path) {
|
if !os.exists(path) {
|
||||||
println('module "$mod" not found')
|
println('module "$mod" not found')
|
||||||
println(path)
|
println(path)
|
||||||
|
|
Loading…
Reference in New Issue