From 411a83e283087aa5038d72040765f306d4e5c96a Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 23 Dec 2019 13:38:46 +0300 Subject: [PATCH] vfmt: use `filepath` instead of `os` --- tools/vfmt.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/vfmt.v b/tools/vfmt.v index b02ec3dea8..647f134794 100644 --- a/tools/vfmt.v +++ b/tools/vfmt.v @@ -5,6 +5,7 @@ module main import ( os + filepath compiler ) @@ -23,7 +24,7 @@ fn main() { is_all: '-all' in os.args || '--all' in os.args } 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() if foptions.is_verbose { eprintln('vfmt toolexe: $toolexe') @@ -98,4 +99,3 @@ Options: -w write result to (source) file(s) instead of to stdout. ') } -