mirror of
https://git.mills.io/prologic/zs
synced 2025-04-09 12:02:03 +00:00
Fix default PATH for .zs for partials for Go 1.19 changes to LookPath handling
This commit is contained in:
parent
efa11e9761
commit
70fb47d6ee
1 changed files with 3 additions and 2 deletions
5
main.go
5
main.go
|
@ -168,7 +168,7 @@ func render(s string, vars Vars) (string, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Renders markdown with the given layout into html expanding all the macros
|
// Renders markdown with the given layout into html expanding all the macros
|
||||||
|
@ -298,7 +298,8 @@ func buildAll(watch bool) {
|
||||||
func init() {
|
func init() {
|
||||||
// prepend .zs to $PATH, so plugins will be found before OS commands
|
// prepend .zs to $PATH, so plugins will be found before OS commands
|
||||||
p := os.Getenv("PATH")
|
p := os.Getenv("PATH")
|
||||||
p = ZSDIR + ":" + p
|
w, _ := os.Getwd()
|
||||||
|
p = filepath.Join(w, ZSDIR) + ":" + p
|
||||||
os.Setenv("PATH", p)
|
os.Setenv("PATH", p)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue