mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
os: merge with filepath
This commit is contained in:
parent
5e541e1f11
commit
783dee1f48
57 changed files with 249 additions and 361 deletions
|
@ -2,7 +2,6 @@ module compiler
|
|||
|
||||
import (
|
||||
os
|
||||
filepath
|
||||
term
|
||||
)
|
||||
// ////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -157,7 +156,7 @@ fn (s &Scanner) get_error_filepath() string {
|
|||
else {
|
||||
s.print_rel_paths_on_error}}
|
||||
if use_relative_paths {
|
||||
workdir := os.getwd() + filepath.separator
|
||||
workdir := os.getwd() + os.path_separator
|
||||
if s.file_path.starts_with(workdir) {
|
||||
return s.file_path.replace(workdir, '')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue