You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cwd for Run python file in dedicated terminal is different from the one configured #21251
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
cwd 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.
Activity
[-]Run python file in dedicated terminal, CWD[/-][+]cwd for Run python file in dedicated terminal is different from the one configured[/+]karrtikr commentedon 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.
karrtikr commentedon Jul 23, 2023
cwd 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.beamouser commentedon Jul 24, 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 path
Is this my understand problem or the settings?
karrtikr commentedon Jul 24, 2023
Thanks for clarifying, in original bug title you mentioned "Terminal > Integrated: Cwd is ${fileDirname}" which is different from this setting.
karrtikr commentedon Jul 24, 2023
Fix should be out in the pre-release version of the extension in a day, use the following to try it out:
karrtikr commentedon Jul 24, 2023
Fix should be out, let me know.