1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: support VMODULES environment variable (defaulting to ~/.vmodules)

This commit is contained in:
Delyan Angelov
2020-11-08 08:07:17 +02:00
parent 0ba5544446
commit 4b35495fbe
8 changed files with 19 additions and 13 deletions

View File

@@ -552,7 +552,7 @@ fn init_settings() {
s.is_help = '-h' in os.args || '--help' in os.args || 'help' in os.args
s.is_verbose = '-v' in os.args
s.server_urls = cmdline.options(os.args, '-server-url')
s.vmodules_path = os.join_path(os.home_dir(), '.vmodules')
s.vmodules_path = os.vmodules_dir()
}
fn verbose_println(s string) {