Skip to content

Commit b90fd36

Browse files
authored
Merge pull request #246 from arduino/fix_filepath
Parse config files relative to the binary
2 parents 91efd8f + 8e91a13 commit b90fd36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func main() {
121121
}
122122

123123
// Parse ini config
124-
args, err := parseIni("config.ini")
124+
args, err := parseIni(filepath.Join(dest, "config.ini"))
125125
if err != nil {
126126
panic(err)
127127
}
@@ -131,7 +131,7 @@ func main() {
131131
}
132132

133133
// Parse additional ini config
134-
args, err = parseIni(*additionalConfig)
134+
args, err = parseIni(filepath.Join(dest, *additionalConfig))
135135
if err != nil {
136136
panic(err)
137137
}

0 commit comments

Comments
 (0)