Skip to content

Commit af9188b

Browse files
Copiloteleanorjboyd
andcommitted
Improve PET terminal command to run as command rather than shell
Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
1 parent 681287a commit af9188b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/extension.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,11 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
434434
try {
435435
const petPath = await getNativePythonToolsPath();
436436
const terminal = createTerminal({
437-
name: 'Python Environment Tool (PET)',
438-
shellPath: petPath,
439-
shellArgs: []
437+
name: 'Python Environment Tool (PET)'
440438
});
441439
terminal.show();
442-
traceInfo(`Created terminal with PET: ${petPath}`);
440+
terminal.sendText(`"${petPath}"\n`);
441+
traceInfo(`Running PET in terminal: ${petPath}`);
443442
} catch (error) {
444443
traceError('Error running PET in terminal', error);
445444
window.showErrorMessage(`Failed to run Python Environment Tool: ${error}`);

0 commit comments

Comments
 (0)