prepare for compiler module rename (#2323)

pull/2324/head
joe-conigliaro 2019-10-13 22:34:29 +11:00 committed by GitHub
parent d3a206d6db
commit 6e62d9709f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ fn (v &V) find_module_path(mod string) ?string {
// First check for local modules in the same directory
mut import_path := os.getwd() + '${os.path_separator}$mod_path'
// 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'
}
//println('ip=$import_path')