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") }