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

move vfmt frontend program to tools/vfmt.v

This commit is contained in:
Delyan Angelov
2019-12-23 12:02:50 +02:00
committed by Alexander Medvednikov
parent 28594a65a8
commit 42b1660c7e
12 changed files with 234 additions and 120 deletions

View File

@ -27,11 +27,11 @@ pub fn new_test_session(vargs string) TestSession {
}
pub fn vexe_path() string {
// NB: tools extracted from v require that the first
// argument to them to be the v executable location.
// NB: tools extracted from v require that the VEXE
// environment variable contains the path to the v executable location.
// They are usually launched by vlib/compiler/vtools.v,
// launch_tool/1 , which provides it.
return os.args[1]
return os.getenv('VEXE')
}