mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-02 00:26:35 +00:00
Merge pull request #882 from geraudster/fix/textfile_default_path
Fix default path for textfile collector
This commit is contained in:
@@ -338,5 +338,5 @@ func checkBOM(encoding utfbom.Encoding) error {
|
|||||||
|
|
||||||
func getDefaultPath() string {
|
func getDefaultPath() string {
|
||||||
execPath, _ := os.Executable()
|
execPath, _ := os.Executable()
|
||||||
return filepath.Join(execPath, "textfile_inputs")
|
return filepath.Join(filepath.Dir(execPath), "textfile_inputs")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user