rename ModPath to v_modules_path; do not allow long variable names without _

This commit is contained in:
Alexander Medvednikov 2019-09-29 04:54:12 +03:00
parent 8b8cd13929
commit ee8ff39454
9 changed files with 61 additions and 48 deletions

View file

@ -43,7 +43,7 @@ fn (v &V) find_module_path(mod string) string {
//println('ip=$import_path')
// Finally try modules installed with vpm (~/.vmodules)
if !os.dir_exists(import_path) {
import_path = '$ModPath/$mod_path'
import_path = '$v_modules_path/$mod_path'
if !os.dir_exists(import_path){
verror('module "$mod" not found')
}