File tree 2 files changed +11
-15
lines changed
2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -47248,14 +47248,12 @@ const utils = __importStar(__nccwpck_require__(1314));
47248
47248
* Provide current location of miniconda or location where it will be installed
47249
47249
*/
47250
47250
function condaBasePath(options) {
47251
- let condaPath = constants.MINICONDA_DIR_PATH;
47252
- if (!options.useBundled) {
47253
- if (constants.IS_MAC) {
47254
- condaPath = "/Users/runner/miniconda3";
47255
- }
47256
- else {
47257
- condaPath += "3";
47258
- }
47251
+ let condaPath;
47252
+ if (options.useBundled) {
47253
+ condaPath = constants.MINICONDA_DIR_PATH;
47254
+ }
47255
+ else {
47256
+ condaPath = path.join(os.homedir(), "miniconda3");
47259
47257
}
47260
47258
return condaPath;
47261
47259
}
Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ import * as utils from "./utils";
17
17
* Provide current location of miniconda or location where it will be installed
18
18
*/
19
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
- }
20
+ let condaPath : string ;
21
+ if ( options . useBundled ) {
22
+ condaPath = constants . MINICONDA_DIR_PATH ;
23
+ } else {
24
+ condaPath = path . join ( os . homedir ( ) , "miniconda3" ) ;
27
25
}
28
26
return condaPath ;
29
27
}
You can’t perform that action at this time.
0 commit comments