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

os: home_dir() remove trailing slash (#6512)

This commit is contained in:
Lukas Neubert
2020-09-30 16:02:54 +02:00
committed by GitHub
parent 76e373a5f4
commit 3a8be4d8d9
3 changed files with 6 additions and 7 deletions

View File

@@ -533,7 +533,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.home_dir() + '.vmodules'
s.vmodules_path = os.join_path(os.home_dir(), '.vmodules')
}
fn verbose_println(s string) {