Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdb6329 commit 996b552Copy full SHA for 996b552
src/client/providers/execInTerminalProvider.ts
@@ -85,7 +85,12 @@ function execSelectionInTerminal() {
85
if (IS_WINDOWS) {
86
// Multi line commands don't work the same way on windows terminals as it does on other OS
87
// So just start the Python REPL, then send the commands
88
- terminal.sendText(`"${currentPythonPath}"${launchArgsString}`);
+ if (currentPythonPath.indexOf(' ') > 0) {
89
+ terminal.sendText(`"${currentPythonPath}"${launchArgsString}`);
90
+ }
91
+ else {
92
+ terminal.sendText(`${currentPythonPath}${launchArgsString}`);
93
94
terminal.sendText(code);
95
}
96
else {
0 commit comments