diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 85c09a6..b83421f 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -21,6 +21,9 @@ func GetFilePath(path string) string { // check if filename exists if _, err := os.Stat(path); os.IsNotExist((err)) { slog.Info("File not found, searching in same directory as binary", "filename", path) + if filepath.IsAbs(path) { + return path + } // if not, check that it exists in the same directory as the currently executing binary ex, err2 := os.Executable() if err2 != nil {