From f6f7dc96e9af7bad0b7f1d006a92b022514ad487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9raud=20Duge=20de=20bernonville?= Date: Tue, 30 Nov 2021 16:30:52 +0100 Subject: [PATCH] Get EXE directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: GĂ©raud Duge de bernonville --- collector/textfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/textfile.go b/collector/textfile.go index 0a874923..4a6bdba4 100644 --- a/collector/textfile.go +++ b/collector/textfile.go @@ -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") }