mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: merge with filepath
This commit is contained in:
@@ -2,7 +2,6 @@ module main
|
||||
|
||||
import os
|
||||
import flag
|
||||
import filepath
|
||||
|
||||
const (
|
||||
tool_version = '0.0.3'
|
||||
@@ -42,7 +41,7 @@ fn (context Context) footer() {
|
||||
}
|
||||
|
||||
fn (context Context) file2v(file string) {
|
||||
fname := filepath.filename(file)
|
||||
fname := os.filename(file)
|
||||
fname_no_dots := fname.replace('.', '_')
|
||||
byte_name := '${context.prefix}${fname_no_dots}'
|
||||
fbytes := os.read_bytes(file) or {
|
||||
|
||||
Reference in New Issue
Block a user