davidhalter / jedi

Awesome autocompletion, static analysis and refactoring library for python
http://jedi.readthedocs.io
Other
5.78k stars 508 forks source link

_get_executable_path() can't get the correct path on Windows Anaconda #1993

Closed HairlessVillager closed 5 months ago

HairlessVillager commented 5 months ago

https://github.com/davidhalter/jedi/blob/a4574a50d01e88316ddf554419cae64f547a7d70/jedi/api/environment.py#L370

...
if os.name == 'nt':
    python = os.path.join(path, 'Scripts', 'python.exe')
...

The path of python.exe in my machine looks like D:\Anaconda\anaconda3\envs\django-q2\python.exe, and the arguement path ="D:\\Anaconda\\anaconda3\\envs\\django" is as expected.