Skip to content

Commit c350f72

Browse files
port isolated fix to jupyter ext (#152)
1 parent 57dc165 commit c350f72

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
@@ -305,7 +305,7 @@ export function shell_exec(command: string, lockfile: string, shellArgs: string[
305305
// We don't bother with a "parse" function since the output
306306
// could be anything.
307307
return [
308-
ISOLATED.fileToCommandArgument(),
308+
ISOLATED,
309309
script,
310310
command.fileToCommandArgument(),
311311
// The shell args must come after the command

src/test/common/process/pythonProcess.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { IProcessService, StdErrError } from '../../../client/common/process/typ
1212
import { EXTENSION_ROOT_DIR_FOR_TESTS } from '../../constants';
1313
import { noop } from '../../core';
1414

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

1717
use(chaiAsPromised);
1818

0 commit comments

Comments
 (0)