changeset 57:9e556e91fbf6 draft

Use absolute paths for running extensions found in .aya Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Thu, 13 Apr 2023 23:37:34 +0000
parents 315dee06253e
children ef2697e4490e
files cmd/aya/main.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/aya/main.go	Sun Apr 09 02:45:23 2023 +0000
+++ b/cmd/aya/main.go	Thu Apr 13 23:37:34 2023 +0000
@@ -299,7 +299,7 @@
 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)
 }