Use absolute paths for running extensions found in .aya

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/aya/trunk@58 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
yakumo.izuru 2023-04-13 23:37:34 +00:00
parent 4cc14573b6
commit c069a82124

View File

@ -299,7 +299,7 @@ func buildAll(watch bool) {
func init() {
// prepend .aya to $PATH, so plugins will be found before OS commands
p := os.Getenv("PATH")
p = AYADIR + ":" + p
p = os.Getenv("PWD") + "/" + AYADIR + ":" + p
os.Setenv("PATH", p)
}