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:
@ -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') {
|
||||
|
Reference in New Issue
Block a user