mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-02-27 17:40:40 +00:00
Get EXE directory
Signed-off-by: Géraud Duge de bernonville <geraud.dugedebernonville@ext.cdiscount.com>
This commit is contained in:
parent
f84f54afda
commit
f6f7dc96e9
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user