I am looking for a piece of code Python code that would give me the path to IntelliJ IDEA or PyCharm exe if they are installed.
Usually, I would want to detect the same for Eclipse but it seems that Eclipse doesn’t have an installer 🙁
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The installation path is stored in the registry:
HKEY_CURRENT_USER\JetBrains\IntelliJ IDEA\<build number>\(Default)(replace IntelliJ IDEA with PyCharm if you need the PyCharm installation path)
You can use the _winreg module to read the registry and retrieve the path.