code: func (p *Paths) initBaseDirectory(baseDirectoryPath string) (err error) {
  	// No path specified in the options
  	p.baseDirectory = baseDirectoryPath
  	if len(p.baseDirectory) == 0 {
  		// Retrieve executable path
  		var ep string
  		if ep, err = os.Executable(); err != nil {
  			err = errors.Wrap(err, "retrieving executable path failed")
  			return
  		}
  		p.baseDirectory = filepath.Dir(ep)
  	}
  
  	// We need the absolute path
  	if p.baseDirectory, err = filepath.Abs(p.baseDirectory); err != nil {
  		err = errors.Wrap(err, "computing absolute path failed")
  		return
  	}
  	return
  }
docs: // initBaseDirectory initializes the base directory path