Skip to content

python.terminal.executeInFileDir #15181

@lixiaoyao0

Description

@lixiaoyao0

Environment data

  • VS Code version: 1.52
  • Extension version (available under the Extensions sidebar): v2020.12.424452561
  • OS and version: windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: Pylance

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

I hope to be in the directory where the code file is located every time I run it. After setting "python.terminal.executeInFileDir": true, if the file to be run is in the parent directory of the current path, the directory will not be automatically switched.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions