]> Nishi Git Mirror - aya.git/commitdiff
Use absolute paths for running extensions found in .aya
authorIzuru Yakumo <yakumo.izuru@chaotic.ninja>
Thu, 13 Apr 2023 23:37:34 +0000 (20:37 -0300)
committerIzuru Yakumo <yakumo.izuru@chaotic.ninja>
Thu, 13 Apr 2023 23:37:34 +0000 (20:37 -0300)
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
cmd/aya/main.go

index 4f04b1bc70e0432a292200fc5eed8e22c4014912..961e67400a2dbde585689735c24b96f654eda455 100644 (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)
 }