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

os, filepath: reorganize functions

This commit is contained in:
Alexey
2019-12-23 13:09:22 +03:00
committed by Alexander Medvednikov
parent 6e130cd446
commit dced76d1a4
28 changed files with 174 additions and 98 deletions

View File

@ -1,6 +1,9 @@
module runner
import os
import (
os
filepath
)
struct RunnerOptions {
pub:
@ -17,7 +20,7 @@ pub fn full_path_to_v(dirs_in int) string {
vname := if os.user_os() == 'windows' { 'v.exe' } else { 'v' }
mut path := os.executable()
for i := 0; i < dirs_in; i++ {
path = os.dir(path)
path = filepath.dir(path)
}
vexec := path + os.path_separator + vname
/*