~mendelmaleh/pfin

2105ef6ffad53db21486c8b458df8aef530e1e81 — Mendel Elmaleh 26 days ago 4584e5e master
Change default config path
1 files changed, 2 insertions(+), 2 deletions(-)

M types.go
M types.go => types.go +2 -2
@@ 50,12 50,12 @@ func (a Account) User(card string) string {
func ParseConfig(path string) (config Config, err error) {
	// default config path
	if path == "" {
		configpath, err := os.UserConfigDir()
		configpath, err := os.UserHomeDir()
		if err != nil {
			return config, err
		}

		path = filepath.Join(configpath, "pfin", "statements", "config.toml")
		path = filepath.Join(configpath, "statements", "config.toml")
	}

	data, err := os.ReadFile(path)