Skip to content

Commit 80ec95d

Browse files
committed
PYTHONSTARTUP should be injected regardless of pythonTerminalEnv Experiment.
1 parent b44b4d4 commit 80ec95d

File tree

1 file changed

+2
-0
lines changed
  • src/client/terminals/envCollectionActivation

1 file changed

+2
-0
lines changed

src/client/terminals/envCollectionActivation/service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import {
4444
} from '../types';
4545
import { ProgressService } from '../../common/application/progressService';
4646
import { useEnvExtension } from '../../envExt/api.internal';
47+
import { registerPythonStartup } from '../pythonStartup';
4748

4849
@injectable()
4950
export class TerminalEnvVarCollectionService implements IExtensionActivationService, ITerminalEnvVarCollectionService {
@@ -98,6 +99,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
9899
try {
99100
if (!inTerminalEnvVarExperiment(this.experimentService)) {
100101
this.context.environmentVariableCollection.clear();
102+
await registerPythonStartup(this.context);
101103
await this.handleMicroVenv(resource);
102104
if (!this.registeredOnce) {
103105
this.interpreterService.onDidChangeInterpreter(

0 commit comments

Comments
 (0)