fix(PDA_CONFIG): sets to dir where config.toml should be found rather than directly to a file

This commit is contained in:
Lewis Wynne 2025-12-18 21:53:40 +00:00
parent 7707dfbe86
commit e6d39e84d8

View file

@ -137,7 +137,7 @@ func loadConfig() (Config, error) {
func configPath() (string, error) {
if override := os.Getenv("PDA_CONFIG"); override != "" {
return override, nil
return filepath.Join(override, "config.toml"), nil
}
scope := gap.NewScope(gap.User, "pda")
dir, err := scope.ConfigPath("")