use script dir for parser

This commit is contained in:
Carlosokumu 2024-08-31 10:26:49 +03:00
parent cc323707fc
commit de4aaeb02b
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -38,7 +38,7 @@ type Handlers struct {
}
func NewHandlers(dir string, st *state.State) (*Handlers, error) {
pfp := path.Join(dir, "pp.csv")
pfp := path.Join(scriptDir, "pp.csv")
parser := asm.NewFlagParser()
_, err := parser.Load(pfp)
if err != nil {