mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
rename ModPath to v_modules_path; do not allow long variable names without _
This commit is contained in:
parent
8b8cd13929
commit
ee8ff39454
9 changed files with 61 additions and 48 deletions
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue