Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 996b552

Browse files
committed
fix #651
1 parent cdb6329 commit 996b552

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/client/providers/execInTerminalProvider.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ function execSelectionInTerminal() {
8585
if (IS_WINDOWS) {
8686
// Multi line commands don't work the same way on windows terminals as it does on other OS
8787
// So just start the Python REPL, then send the commands
88-
terminal.sendText(`"${currentPythonPath}"${launchArgsString}`);
88+
if (currentPythonPath.indexOf(' ') > 0) {
89+
terminal.sendText(`"${currentPythonPath}"${launchArgsString}`);
90+
}
91+
else {
92+
terminal.sendText(`${currentPythonPath}${launchArgsString}`);
93+
}
8994
terminal.sendText(code);
9095
}
9196
else {

0 commit comments

Comments
 (0)