Skip to content

Commit

Permalink
add cwd for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Jul 19, 2023
1 parent 713007f commit b4cf74d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/testing/common/debugLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ export class DebugLauncher implements ITestDebugLauncher {
const pluginPath = path.join(EXTENSION_ROOT_DIR, 'pythonFiles');
launchArgs.env.PYTHONPATH = pluginPath;
}
if (launchArgs.env && launchArgs.env.PYTHONPATH) {
launchArgs.env.PYTHONPATH = `${launchArgs.env.PYTHONPATH}${path.delimiter}${options.cwd}`;
} else if (launchArgs.env) {
launchArgs.env.PYTHONPATH = options.cwd;
}

// Clear out purpose so we can detect if the configuration was used to
// run via F5 style debugging.
Expand Down

0 comments on commit b4cf74d

Please sign in to comment.