From ff216e7d50d7585e7c9c8e7708c47262ae00b041 Mon Sep 17 00:00:00 2001 From: prime31 Date: Sat, 30 Nov 2019 00:17:37 -0800 Subject: [PATCH] append module name for module search path --- vlib/compiler/modules.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/modules.v b/vlib/compiler/modules.v index 0506d1ae08..bb6f7b0a7e 100644 --- a/vlib/compiler/modules.v +++ b/vlib/compiler/modules.v @@ -166,7 +166,7 @@ fn (v &V) find_module_path(mod string) ?string { tried_paths << filepath.join(v.pref.vlib_path, mod_path) tried_paths << filepath.join(modules_lookup_path, mod_path) if v.pref.user_mod_path.len > 0 { - tried_paths << v.pref.user_mod_path + tried_paths << filepath.join(v.pref.user_mod_path, mod_path) } for try_path in tried_paths { if v.pref.is_verbose { println(' >> trying to find $mod in $try_path ...') }