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

os.dir(); fix vroot on Windows

This commit is contained in:
Alexander Medvednikov
2019-07-16 01:57:03 +02:00
parent 9177256726
commit cc06fe7ae6
5 changed files with 28 additions and 1 deletions

View File

@ -933,7 +933,7 @@ fn new_v(args[]string) *V {
'option.v',
]
// Location of all vlib files
vroot := os.executable().all_before_last('/')
vroot := os.dir(os.executable())
println('VROOT=$vroot')
// v.exe's parent directory should contain vlib
if os.dir_exists(vroot) && os.dir_exists(vroot + '/vlib/builtin') {