Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

[Python] Unable to validate environment #771

Closed
alexandrul opened this issue Nov 20, 2019 · 2 comments
Closed

[Python] Unable to validate environment #771

alexandrul opened this issue Nov 20, 2019 · 2 comments
Assignees
Milestone

Comments

@alexandrul
Copy link

Sourcetrail: 2019.4.61
OS: Win 7 x64
Python: 3.8.0

After selecting a folder for the Python environment, the validation process looks only for scripts\python.exe, ignoring the perfectly valid Python instalation with a python.exe in the main folder.

For the moment I'm manually appending python.exe to the selected folder.

@mlangkabel
Copy link
Contributor

@alexandrul: Thanks for bringing this up. I think that the Python indexer should have a fallback that also checks if a valid environment can be found with the executable name appended to the provided path. This name may be different for different operating systems.

@egraether egraether added this to the 2020.1 milestone Dec 9, 2019
@mlangkabel mlangkabel self-assigned this Dec 10, 2019
mlangkabel added a commit that referenced this issue Dec 10, 2019
mlangkabel added a commit that referenced this issue Dec 10, 2019
This will allow the Python indexer to accept a Windows Python environment with the python.exe located in the root directory of the environment.
@mlangkabel
Copy link
Contributor

Fixed by merge of pull request #846.

egraether pushed a commit that referenced this issue Dec 16, 2019
This will allow the Python indexer to accept a Windows Python environment with the python.exe located in the root directory of the environment.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants