mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
prepare for compiler module rename (#2323)
This commit is contained in:
parent
d3a206d6db
commit
6e62d9709f
@ -47,7 +47,7 @@ fn (v &V) find_module_path(mod string) ?string {
|
|||||||
// First check for local modules in the same directory
|
// First check for local modules in the same directory
|
||||||
mut import_path := os.getwd() + '${os.path_separator}$mod_path'
|
mut import_path := os.getwd() + '${os.path_separator}$mod_path'
|
||||||
// Now search in vlib/
|
// Now search in vlib/
|
||||||
if !os.dir_exists(import_path) {
|
if mod == 'compiler' || !os.dir_exists(import_path) {
|
||||||
import_path = '$v.lang_dir${os.path_separator}vlib${os.path_separator}$mod_path'
|
import_path = '$v.lang_dir${os.path_separator}vlib${os.path_separator}$mod_path'
|
||||||
}
|
}
|
||||||
//println('ip=$import_path')
|
//println('ip=$import_path')
|
||||||
|
Loading…
Reference in New Issue
Block a user