mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
os.dir(); fix vroot on Windows
This commit is contained in:
parent
9177256726
commit
cc06fe7ae6
5 changed files with 28 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue