File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed
Expand file tree Collapse file tree 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));
4724847248 * Provide current location of miniconda or location where it will be installed
4724947249 */
4725047250function 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");
4725947257 }
4726047258 return condaPath;
4726147259}
Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ import * as utils from "./utils";
1717 * Provide current location of miniconda or location where it will be installed
1818 */
1919export 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" ) ;
2725 }
2826 return condaPath ;
2927}
You can’t perform that action at this time.
0 commit comments