Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Setting custom pythonpath in a per project settings file#177

rafaelleru started this conversation inConfiguration
Discussion options

Hi all, sorry for asking here but I could not find the solution on jedi documentation neither on SO or pylsp docs.

Is there a way to custom set my pythonpath only for certain projects? I can do it via venv but I don't know how to do it with a config file in order to use it with the global LSP server in my machine.

Thanks.

You must be logged in to vote

Replies: 4 comments 4 replies

Comment options

@rafaelleru, What to do you mean by certain projects? Do you want to run this pylsp on a custom python (other than the globally installed one)?

You must be logged in to vote
0 replies
Comment options

@npradeep357 Is it actually be possible to run pylsp on a custom python ?
Thanks.

You must be logged in to vote
2 replies
@npradeep357
Comment options

What do you mean by custom python? Is it venv? or custom python intrepretor (like PyPy, IronPython)?
if you mean venv, then yes, it is possible.

@npradeep357
Comment options

But if you mean a custom python interpreter, then I haven't tested it. You need to give it a try and see.

Comment options

Moving this to our new Discussions forum so you can keep talking about it there.

You must be logged in to vote
0 replies
Comment options

Hello. I was directed frommy issue to here for support. I have already resolved, butsharing it here in case it helps someone.

My solution is to patch the Jedi interaction so it dynamically finds the venv associated with respective projects.

You must be logged in to vote
2 replies
@HairlessVillager
Comment options

Your script is a real brainteaser! But still thanks!

@HairlessVillager
Comment options

I re-developed a Windows version script on yours. If anyone need,click here.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
6 participants
@rafaelleru@ccordoba12@skeledrew@cbensimon@npradeep357@HairlessVillager
Converted from issue

This discussion was converted from issue #162 on March 22, 2022 15:04.


[8]ページ先頭

©2009-2025 Movatter.jp