Skip to content

Commit 27027b2

Browse files
committed
Do not quote isolated in exec module (microsoft#14108)
* Do not quote isolated in exec module * Revert "Do not quote isolated in exec module" This reverts commit b9fa04c. * Revert "IPyKernel install issue with windows paths (microsoft#13667)" This reverts commit 23725ab.
1 parent 0b41a86 commit 27027b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/client/common/process/internal/python.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function execCode(code: string, isolated = true): string[] {
2828
export function execModule(name: string, moduleArgs: string[], isolated = true): string[] {
2929
const args = ['-m', name, ...moduleArgs];
3030
if (isolated) {
31-
args[0] = ISOLATED.fileToCommandArgument();
31+
args[0] = ISOLATED; // replace
3232
}
3333
// "code" isn't specific enough to know how to parse it,
3434
// so we only return the args.

src/client/common/process/internal/scripts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export function shell_exec(command: string, lockfile: string, shellArgs: string[
306306
// We don't bother with a "parse" function since the output
307307
// could be anything.
308308
return [
309-
ISOLATED.fileToCommandArgument(),
309+
ISOLATED,
310310
script,
311311
command.fileToCommandArgument(),
312312
// The shell args must come after the command

src/test/common/moduleInstaller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ import { closeActiveWindows, initializeTest } from './../initialize';
140140

141141
chai_use(chaiAsPromised);
142142

143-
const isolated = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'pythonFiles', 'pyvsc-run-isolated.py').replace(/\\/g, '/');
143+
const isolated = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'pythonFiles', 'pyvsc-run-isolated.py');
144144

145145
const info: PythonEnvironment = {
146146
architecture: Architecture.Unknown,

0 commit comments

Comments
 (0)