Skip to content

Conversation

@lucaSartore
Copy link
Contributor

Fix conda environment path resolution on Windows

On Linux, the conda environment’s Python executable is located at:

<conda_env_path>/<conda_env_name>/bin/python

Whereas on Windows it is located at:

<conda_env_path>\<conda_env_name>\python.exe

This means that to correctly resolve the conda base path (starting from the executable), get_base needs to be called twice on Linux, but only once on Windows.

Without this adjustment, environments were not being activated properly. In my case, this caused nvim-dap-python to work as expected on Linux but fail on Windows.

This PR makes the necessary changes to fix the issue.

@linux-cultist
Copy link
Owner

Hi!

Thank you very much for the PR, but we need to merge it into main branch from today. :) Main has gotten all the changes from the regexp branch so should not cause any problems.

@lucaSartore lucaSartore changed the base branch from regexp to main August 27, 2025 17:21
@lucaSartore
Copy link
Contributor Author

That was a bit of unlucky timing I guess… Anyway, now it should be good to go.

@linux-cultist linux-cultist merged commit 13f1988 into linux-cultist:main Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants