We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8874247 commit d42f8b8Copy full SHA for d42f8b8
src/conda.ts
@@ -17,13 +17,11 @@ import * as utils from "./utils";
17
* Provide current location of miniconda or location where it will be installed
18
*/
19
export function condaBasePath(options: types.IDynamicOptions): string {
20
- let condaPath: string = constants.MINICONDA_DIR_PATH;
21
- if (!options.useBundled) {
22
- if (constants.IS_MAC) {
23
- condaPath = "/Users/runner/miniconda3";
24
- } else {
25
- condaPath += "3";
26
- }
+ let condaPath: string;
+ if (options.useBundled) {
+ condaPath = constants.MINICONDA_DIR_PATH;
+ } else {
+ condaPath = path.join(os.homedir(), "miniconda3");
27
}
28
return condaPath;
29
0 commit comments