Skip to content

Commit

Permalink
Find conda activate location on Mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Jan 29, 2023
1 parent dbd6aa6 commit b7481e2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,12 @@ private static File getCondaActivationFile(File condaBinDir) throws Exception {
if (PlatformUtils.isWindowsPlatform()) {
return new File(condaBinDir, "activate.bat");
} else {
return new File(condaBinDir, "activate");
File f = new File(condaBinDir, "activate");
if (f.exists()) {
return f;
}
File f2 = new File(f.getParentFile().getParentFile(), "bin");
return new File(f2, "activate");
}
}

Expand Down

0 comments on commit b7481e2

Please sign in to comment.