Merge pull request #882 from geraudster/fix/textfile_default_path

Fix default path for textfile collector
This commit is contained in:
Ben Reedy 2021-12-02 13:13:13 +10:00 committed by GitHub
commit 479e6b1381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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