Changeset 58 in code for trunk/cmd


Ignore:
Timestamp:
Apr 13, 2023, 11:37:34 PM (2 years ago)
Author:
Izuru Yakumo
Message:

Use absolute paths for running extensions found in .aya

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/aya/main.go

    r56 r58  
    300300        // prepend .aya to $PATH, so plugins will be found before OS commands
    301301        p := os.Getenv("PATH")
    302         p = AYADIR + ":" + p
     302        p = os.Getenv("PWD") + "/" + AYADIR + ":" + p
    303303        os.Setenv("PATH", p)
    304304}
Note: See TracChangeset for help on using the changeset viewer.