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:

committed by
Alexander Medvednikov

parent
28594a65a8
commit
42b1660c7e
@ -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')
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user