Skip to content

How to get interpreter path for 3rd party extension? #20015

Answered by chialiyun
chialiyun asked this question in Q&A
Discussion options

You must be logged in to vote

I figured that the command has to be used with an option (either of the following):

  • object with workplaceFolder field (`{workplaceFolder: "/usr/joe/learnPython"})
  • an array of string []{"path/to/folder1", "path/to/folder2"}

for example:

vscode.commands.executeCommand(
			'python.interpreterPath', {
			workspaceFolder: "path/to/workspace"
		})

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brettcannon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-environments Features relating to handling interpreter environments
2 participants