Skip to content

Commit

Permalink
check if conda env is a base env
Browse files Browse the repository at this point in the history
  • Loading branch information
mbektas committed Oct 16, 2023
1 parent 5cad694 commit 30aff0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export function createCommandScriptInEnv(
// conda commands don't work properly when called from the sub environment.
// instead call using conda from the base environment with -p parameter
const isCondaCommand = isConda && command?.startsWith('conda ');
if (isCondaCommand) {
if (isCondaCommand && !isBaseCondaEnv(envPath)) {
command = `${command} -p ${envPath}`;
}

Expand Down

0 comments on commit 30aff0c

Please sign in to comment.