getCondaInstallerPaths determines the paths to the conda installer and installation directory. Returns installer path and installation directory
()
| 244 | // getCondaInstallerPaths determines the paths to the conda installer and installation directory. |
| 245 | // Returns installer path and installation directory |
| 246 | func (c *CondaPython) getCondaInstallerPaths() (string, string, error) { |
| 247 | downloadsDir := c.ctx.Downloads() |
| 248 | |
| 249 | // Locate the installer in the downloads directory |
| 250 | installerPath := filepath.Join(downloadsDir, c.archiveName) |
| 251 | if !fileio.PathExists(installerPath) { |
| 252 | return "", "", fmt.Errorf("conda installer not found at %s", installerPath) |
| 253 | } |
| 254 | |
| 255 | installDir := filepath.Join(downloadsDir, "tools", "conda-"+c.condaVersion) |
| 256 | return installerPath, installDir, nil |
| 257 | } |
no test coverage detected