1
0
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:
yuyi
2020-03-08 05:26:26 +08:00
committed by GitHub
parent 5e541e1f11
commit 783dee1f48
57 changed files with 249 additions and 361 deletions

View File

@@ -7,7 +7,6 @@ import (
vweb.tmpl // for `$vweb_html()`
os
strings
filepath
)
fn (p mut Parser) comp_time() {
@@ -198,7 +197,7 @@ fn (p mut Parser) comp_time() {
// Can't find the template file in current directory,
// try looking next to the vweb program, in case it's run with
// v path/to/vweb_app.v
path = filepath.dir(p.scanner.file_path) + '/' + path
path = os.dir(p.scanner.file_path) + '/' + path
if !os.exists(path) {
p.error('vweb HTML template "$path" not found')
}