Fix default PATH for .zs for partials for Go 1.19 changes to LookPath handling

master 0.0.2
James Mills 1 month ago
parent efa11e9761
commit 70fb47d6ee
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 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
@ -298,7 +298,8 @@ func buildAll(watch bool) {
func init() {
// prepend .zs to $PATH, so plugins will be found before OS commands
p := os.Getenv("PATH")
p = ZSDIR + ":" + p
w, _ := os.Getwd()
p = filepath.Join(w, ZSDIR) + ":" + p
os.Setenv("PATH", p)
}

Loading…
Cancel
Save