From 6e62d9709fc494ac736a799ef39e994c25e397b6 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sun, 13 Oct 2019 22:34:29 +1100 Subject: [PATCH] prepare for compiler module rename (#2323) --- compiler/modules.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/modules.v b/compiler/modules.v index 6cd140e1a9..afc883ecb7 100644 --- a/compiler/modules.v +++ b/compiler/modules.v @@ -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')