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,11 +1,14 @@
module compiler
import os
import (
os
filepath
)
pub fn launch_tool(tname string) {
is_verbose := '-verbose' in os.args || '--verbose' in os.args
vexe := vexe_path()
vroot := os.dir(vexe)
vroot := filepath.dir(vexe)
set_vroot_folder( vroot ) // needed by tools to find back v
tool_args := os.args[1..].join(' ')
tool_exe := os.realpath('$vroot/tools/$tname')