mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: use filepath
instead of os
This commit is contained in:
parent
4498dc6a47
commit
411a83e283
@ -5,6 +5,7 @@ module main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
os
|
os
|
||||||
|
filepath
|
||||||
compiler
|
compiler
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ fn main() {
|
|||||||
is_all: '-all' in os.args || '--all' in os.args
|
is_all: '-all' in os.args || '--all' in os.args
|
||||||
}
|
}
|
||||||
toolexe := os.executable()
|
toolexe := os.executable()
|
||||||
compiler.set_vroot_folder(os.dir(os.dir(toolexe)))
|
compiler.set_vroot_folder(filepath.dir(filepath.dir(toolexe)))
|
||||||
args := compiler.env_vflags_and_os_args()
|
args := compiler.env_vflags_and_os_args()
|
||||||
if foptions.is_verbose {
|
if foptions.is_verbose {
|
||||||
eprintln('vfmt toolexe: $toolexe')
|
eprintln('vfmt toolexe: $toolexe')
|
||||||
@ -98,4 +99,3 @@ Options:
|
|||||||
-w write result to (source) file(s) instead of to stdout.
|
-w write result to (source) file(s) instead of to stdout.
|
||||||
')
|
')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user