mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix (absolute path) error (#12747)
This commit is contained in:
parent
f60cf65284
commit
c29a3cf6e8
@ -161,7 +161,11 @@ fn (mut p Parser) comptime_call() ast.ComptimeCall {
|
|||||||
path += '.html'
|
path += '.html'
|
||||||
path = os.real_path(path)
|
path = os.real_path(path)
|
||||||
if !is_html {
|
if !is_html {
|
||||||
path = os.join_path_single(dir, tmpl_path)
|
if os.is_abs_path(tmpl_path) {
|
||||||
|
path = tmpl_path
|
||||||
|
} else {
|
||||||
|
path = os.join_path_single(dir, tmpl_path)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if !os.exists(path) {
|
if !os.exists(path) {
|
||||||
if is_html {
|
if is_html {
|
||||||
|
Loading…
Reference in New Issue
Block a user