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
Hello,
I am using pyright and I am currently able to detect my (sub)project root by means of a .projectile file in the desired directory.
In this way, pyright finds all my modules as expected.
Now, I would like to start a python shell with the project root directory prepended to my existing PYTHONPATH.
I've found a way to change the working directory of the python interpreter:
However, this is not the behaviour I intended. I just would like to prepend (projectile-project-root) to the PYTHONPATH seen by the python interpreter when called through run-python whenever I am in a project using pyright. Perhaps using lsp-pyright-extra-paths would be useful, but I am not an expert in Lisp.
Best regards and thank you in advance,
Francisco
The text was updated successfully, but these errors were encountered:
Hello,
I am using pyright and I am currently able to detect my (sub)project root by means of a
.projectile
file in the desired directory.In this way, pyright finds all my modules as expected.
Now, I would like to start a python shell with the project root directory prepended to my existing
PYTHONPATH
.I've found a way to change the working directory of the python interpreter:
However, this is not the behaviour I intended. I just would like to prepend
(projectile-project-root)
to thePYTHONPATH
seen by the python interpreter when called throughrun-python
whenever I am in a project using pyright. Perhaps usinglsp-pyright-extra-paths
would be useful, but I am not an expert in Lisp.Best regards and thank you in advance,
Francisco
The text was updated successfully, but these errors were encountered: