prepare for compiler module rename (#2323)
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