Setting PythonSdkAdditionalData user paths.

已回答

I'm about to write a plugin for PyCharm that creates a new SDK configuration for each project.
The configuration comes from an external source.
But i'm having trouble adding paths to a configured interpreter.

I can see the paths by doing: ((PythonSdkAdditionalData) sdk.getSdkAdditionalData()).getAddedPaths()

But how do add paths to the configuration?

Thanks in advance.

/Fredrik

0
Avatar
Permanently deleted user
正式评论

Hi Fredrik,

 

there is a method called 

setAddedPaths

It should do what you want.

 

请先登录再写评论。