Get EXE directory

Signed-off-by: Géraud Duge de bernonville <geraud.dugedebernonville@ext.cdiscount.com>
This commit is contained in:
Géraud Duge de bernonville
2021-12-01 10:41:46 +01:00
parent f84f54afda
commit f6f7dc96e9
+1 -1
View File
@@ -338,5 +338,5 @@ func checkBOM(encoding utfbom.Encoding) error {
func getDefaultPath() string {
execPath, _ := os.Executable()
return filepath.Join(execPath, "textfile_inputs")
return filepath.Join(filepath.Dir(execPath), "textfile_inputs")
}