1
0
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:
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

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')