Repository navigation
cwd for Run python file in dedicated terminal is different from the one configured #21251
Description
Activity
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on May 15, 2023 - changed the title
[-]Run python file in dedicated terminal, CWD[/-][+]cwd for Run python file in dedicated terminal is different from the one configured[/+]on May 15, 2023 Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.
Run Python File button:
It's okcwd appears to be
${workspaceFolder}for this as well. The user setting doesn't seem to play a role.You can set
"python.terminal.executeInFileDir"to achieve the same behavior. However, if you would still like that setting to play a role, let me know and I can open a feature request on VS Code on your behalf.- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 23, 2023 So, I try to rewrite my problem.
I'm not good at english because of I'm a Chinese people, I'll show you some pictures.
I've already setted "python.terminal.executeInFileDir"
[Run Python File] button:
The CWD is D:\Works\Za\PythonProjects\Test
[Run Python File in Dedicated Terminal] button:
The CWD is D:\Works\Za\PythonProjects
So I got an exception, I konw I can change the file to absolute pathIs this my understand problem or the settings?
- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 24, 2023 Thanks for clarifying, in original bug title you mentioned "Terminal > Integrated: Cwd is ${fileDirname}" which is different from this setting.
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onReady to be worked onand removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jul 24, 2023 - addedauthor-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorneeds PRReady to be worked onReady to be worked on
on Jul 24, 2023 Fix should be out, let me know.
- locked as resolved and limited conversation to collaborators
on Aug 26, 2023 - removedneeds PRReady to be worked onReady to be worked on
on Dec 14, 2023




Type: Feature Request
Terminal > Integrated: Cwd is ${fileDirname}
Run Python File button:
It's ok
But
Run Python File in Dedicated Terminal button:
Cwd is ${workspaceFolder}
Extension version: 2023.9.11351004
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No